Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.371/1.371, allocations: 230.6 MB / 258.3 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 39.94 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2289, allocations: 53.36 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample): time 0.002784/0.2317, allocations: 1.608 MB / 433.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001002/0.2327, allocations: 0.5842 MB / 434.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.115e-05/0.2328, allocations: 3.938 kB / 434.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.215e-05/0.2328, allocations: 7.875 kB / 434.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.2329, allocations: 11.92 kB / 434.1 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002931/0.2332, allocations: 70.61 kB / 434.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.2333, allocations: 43.86 kB / 434.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.587e-05/0.2334, allocations: 16.17 kB / 434.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.2335, allocations: 35.84 kB / 434.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.312e-05/0.2336, allocations: 15.94 kB / 434.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.2336, allocations: 0 / 434.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.932e-05/0.2336, allocations: 11.98 kB / 434.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.926e-05/0.2336, allocations: 11.94 kB / 434.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.491e-05/0.2337, allocations: 31.73 kB / 434.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.2338, allocations: 57.38 kB / 434.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.2338, allocations: 4 kB / 434.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2338, allocations: 4 kB / 434.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.2338, allocations: 3.984 kB / 434.4 MB, free: 4.328 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004248/0.2343, allocations: 309.9 kB / 434.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.2343, allocations: 12.03 kB / 434.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.06e-05/0.2343, allocations: 192 / 434.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.726e-05/0.2343, allocations: 30.75 kB / 434.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.2345, allocations: 24.88 kB / 434.8 MB, free: 3.922 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.2347, allocations: 145.5 kB / 435 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.473e-06/0.2347, allocations: 7.938 kB / 435 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.2347, allocations: 7.938 kB / 435 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000254/0.235, allocations: 109.9 kB / 435.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.235, allocations: 0 / 435.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.235, allocations: 4 kB / 435.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.235, allocations: 0 / 435.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.088e-05/0.2351, allocations: 23.98 kB / 435.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003188/0.2354, allocations: 245.6 kB / 435.3 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.2355, allocations: 71.78 kB / 435.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.306e-05/0.2356, allocations: 30.62 kB / 435.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.2356, allocations: 7.984 kB / 435.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.2356, allocations: 34.56 kB / 435.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.153e-06/0.2356, allocations: 4 kB / 435.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002551/0.2359, allocations: 89.44 kB / 435.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/0.2359, allocations: 110.8 kB / 435.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.2361, allocations: 145.7 kB / 435.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.2361, allocations: 33.64 kB / 435.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.2361, allocations: 88.5 kB / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.2361, allocations: 8 kB / 436 MB, free: 2.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.379e-05/0.2362, allocations: 17.67 kB / 436 MB, free: 2.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2363, allocations: 322.8 kB / 436.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.959e-05/0.2364, allocations: 4 kB / 436.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.419e-05/0.2364, allocations: 35.42 kB / 436.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.527e-05/0.2365, allocations: 51.36 kB / 436.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2365, allocations: 0 / 436.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001414/0.2366, allocations: 73.55 kB / 436.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2367, allocations: 4.125 kB / 436.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.2367, allocations: 4 kB / 436.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2367, allocations: 8 kB / 436.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.831e-05/0.2367, allocations: 8 kB / 436.5 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.2368, allocations: 3.938 kB / 436.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.09e-05/0.2368, allocations: 7.984 kB / 436.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.2368, allocations: 0 / 436.5 MB, free: 2.016 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.539e-05/0.2369, allocations: 117.8 kB / 436.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.228e-05/0.237, allocations: 65.56 kB / 436.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.069e-05/0.237, allocations: 11.97 kB / 436.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.237, allocations: 0 / 436.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.237, allocations: 3.938 kB / 436.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.237, allocations: 4 kB / 436.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.2372, allocations: 144.7 kB / 436.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.2372, allocations: 4 kB / 436.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.214e-05/0.2372, allocations: 4 kB / 436.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.2372, allocations: 4 kB / 436.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2373, allocations: 7.984 kB / 436.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.2373, allocations: 7.922 kB / 436.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.2373, allocations: 11.97 kB / 436.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.2375, allocations: 173.3 kB / 437 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.799e-05/0.2375, allocations: 11.95 kB / 437 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.2375, allocations: 7.984 kB / 437.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.695e-05/0.2376, allocations: 4 kB / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.765e-05/0.2376, allocations: 7.938 kB / 437.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.2376, allocations: 0 / 437.1 MB, free: 1.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.102e-05/0.2377, allocations: 120.9 kB / 437.2 MB, free: 1.234 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2377, allocations: 0 / 437.2 MB, free: 1.234 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002185/0.2379, allocations: 4 kB / 437.2 MB, free: 1.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004645/0.2384, allocations: 0.712 MB / 437.9 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001531/0.2385, allocations: 39.84 kB / 437.9 MB, free: 460 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2385, allocations: 0 / 437.9 MB, free: 460 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.789e-05/0.2386, allocations: 8.25 kB / 437.9 MB, free: 452 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.2389, allocations: 32.02 kB / 438 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.2404, allocations: 1.407 MB / 439.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.2407, allocations: 0.6924 MB / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.945e-05/0.2407, allocations: 0 / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.2408, allocations: 27.42 kB / 440.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2408, allocations: 0 / 440.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.2631, allocations: 1.838 MB / 441.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.59, allocations: 10.5 kB / 442 MB, free: 12.45 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSample_fmu --startTime=0 --stopTime=0.08 --stepSize=1.59331e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SuperSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,superSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,superSample1.factor,superSample1.inferFactor,superSample1.u,superSample1.y,time [Calling sys.exit(0), Time elapsed: 12.975294596049935]