Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.001562/0.001562, 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.001951/0.001951, allocations: 206.1 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.359/1.359, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 47.94 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.246, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003441/0.2494, allocations: 1.892 MB / 433.8 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.251, allocations: 0.7633 MB / 434.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.2511, allocations: 7.938 kB / 434.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.2513, allocations: 23.73 kB / 434.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.2515, allocations: 27.78 kB / 434.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006416/0.2521, allocations: 163.6 kB / 434.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002506/0.2524, allocations: 155.5 kB / 435 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.2525, allocations: 37.72 kB / 435 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.2527, allocations: 71.66 kB / 435.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.2528, allocations: 63.67 kB / 435.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.548e-05/0.2529, allocations: 12 kB / 435.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.253, allocations: 55.97 kB / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.612e-05/0.2531, allocations: 47.78 kB / 435.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.476e-05/0.2532, allocations: 71.53 kB / 435.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003484/0.2535, allocations: 212.8 kB / 435.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.686e-06/0.2535, allocations: 0 / 435.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2535, allocations: 0 / 435.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.2535, allocations: 0 / 435.5 MB, free: 3.273 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008305/0.2544, allocations: 397.6 kB / 435.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.2544, allocations: 15.97 kB / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.174e-05/0.2544, allocations: 4.375 kB / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.067e-05/0.2545, allocations: 42.73 kB / 436 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.2547, allocations: 32.78 kB / 436 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.2551, allocations: 187.6 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.2551, allocations: 8.125 kB / 436.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.2552, allocations: 11.94 kB / 436.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007525/0.2559, allocations: 331.8 kB / 436.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.2559, allocations: 4 kB / 436.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.2559, allocations: 4 kB / 436.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.256, allocations: 0 / 436.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.2562, allocations: 79.94 kB / 436.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004388/0.2566, allocations: 320.6 kB / 436.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004729/0.2571, allocations: 189.2 kB / 437.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.2573, allocations: 93.67 kB / 437.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004019/0.2577, allocations: 67.92 kB / 437.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.2577, allocations: 30.56 kB / 437.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.212e-06/0.2578, allocations: 0 / 437.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006208/0.2584, allocations: 252.3 kB / 437.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.2585, allocations: 114.8 kB / 437.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.2587, allocations: 194.6 kB / 437.9 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.2587, allocations: 29.7 kB / 437.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.596e-05/0.2588, allocations: 104.6 kB / 438 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.2588, allocations: 23.84 kB / 438 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.044e-05/0.2589, allocations: 37.7 kB / 438 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.259, allocations: 334.9 kB / 438.4 MB, free: 200 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.523e-05/0.2591, allocations: 39.92 kB / 438.4 MB, free: 160 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.2593, allocations: 167.5 kB / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/0.2596, allocations: 200.1 kB / 438.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.2596, allocations: 3.938 kB / 438.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003717/0.26, allocations: 217.1 kB / 439 MB, free: 15.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.26, allocations: 8.594 kB / 439 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.26, allocations: 8 kB / 439 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.26, allocations: 4 kB / 439 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.2602, allocations: 47.92 kB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.2602, allocations: 11.92 kB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.2603, allocations: 19.88 kB / 439.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.2603, allocations: 12 kB / 439.1 MB, free: 15.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 0.0001536/0.2605, allocations: 157.6 kB / 439.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.2608, allocations: 157.5 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003945/0.2612, allocations: 185.1 kB / 439.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.2612, allocations: 4 kB / 439.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2612, allocations: 0 / 439.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.2612, allocations: 0 / 439.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000246/0.2615, allocations: 204.5 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.2615, allocations: 4 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.2616, allocations: 35.97 kB / 439.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2616, allocations: 4 kB / 439.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.2616, allocations: 0 / 439.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2616, allocations: 4 kB / 439.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2616, allocations: 3.938 kB / 439.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004281/0.2621, allocations: 284.1 kB / 440.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.89e-05/0.2622, allocations: 39.81 kB / 440.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.2622, allocations: 8 kB / 440.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.2623, allocations: 15.98 kB / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.388e-05/0.2624, allocations: 0 / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.2624, allocations: 4 kB / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001369/0.2625, allocations: 156 kB / 440.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2625, allocations: 3.938 kB / 440.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.2628, allocations: 28 kB / 440.4 MB, free: 13.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0009955/0.2638, allocations: 0.9199 MB / 441.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000341/0.2642, allocations: 143.8 kB / 441.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2642, allocations: 0 / 441.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.769e-05/0.2642, allocations: 7.938 kB / 441.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005898/0.2648, allocations: 145 kB / 441.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.2674, allocations: 2.181 MB / 443.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.2678, allocations: 0.7281 MB / 444.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.967e-05/0.2678, allocations: 21.48 kB / 444.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.554e-05/0.2679, allocations: 43.42 kB / 444.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2679, allocations: 0 / 444.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.2937, allocations: 4.558 MB / 449.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.81, allocations: 6.875 kB / 449.1 MB, free: 5.164 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(sample1.noise.seedState[1]),previous(sample1.noise.seedState[2]),previous(sample1.noise.seedState[3]),sample1.bits,sample1.limited,sample1.limiter.u,sample1.limiter.uMax,sample1.limiter.uMin,sample1.limiter.y,sample1.noise.firstSeed[1],sample1.noise.firstSeed[2],sample1.noise.firstSeed[3],sample1.noise.noiseMax,sample1.noise.noiseMin,sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],sample1.noise.u,sample1.noise.y,sample1.noisy,sample1.quantization.bits,sample1.quantization.quantized,sample1.quantization.u,sample1.quantization.y,sample1.quantization.yMax,sample1.quantization.yMin,sample1.quantized,sample1.sample1.u,sample1.sample1.y,sample1.u,sample1.y,sample1.yMax,sample1.yMin,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.218979199009482]