Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 108.6 kB / 18.49 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 197 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 39.94 kB / 366.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1072, allocations: 52.15 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003298/0.1105, allocations: 1.861 MB / 420.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.1116, allocations: 0.6894 MB / 421 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.595e-05/0.1117, allocations: 7.938 kB / 421.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.1119, allocations: 23.78 kB / 421.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001358/0.112, allocations: 23.8 kB / 421.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004936/0.1125, allocations: 159.1 kB / 421.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002154/0.1127, allocations: 155.5 kB / 421.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.1129, allocations: 37.55 kB / 421.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.113, allocations: 63.7 kB / 421.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.1131, allocations: 55.7 kB / 421.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.699e-05/0.1131, allocations: 16 kB / 421.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.957e-05/0.1132, allocations: 51.95 kB / 421.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.109e-05/0.1133, allocations: 43.83 kB / 421.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.859e-05/0.1134, allocations: 71.48 kB / 421.7 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.1136, allocations: 207.1 kB / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1136, allocations: 0 / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1136, allocations: 0 / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1136, allocations: 3.938 kB / 421.9 MB, free: 9.125 MB / 350.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.00078/0.1144, allocations: 474.8 kB / 422.4 MB, free: 8.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.1145, allocations: 12.03 kB / 422.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.927e-05/0.1145, allocations: 384 / 422.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.402e-05/0.1145, allocations: 50.67 kB / 422.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/0.1146, allocations: 24.78 kB / 422.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/0.1149, allocations: 244.1 kB / 422.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.1149, allocations: 12.12 kB / 422.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.1149, allocations: 12 kB / 422.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006801/0.1156, allocations: 317 kB / 423.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1156, allocations: 3.938 kB / 423.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1156, allocations: 8 kB / 423.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.1156, allocations: 0 / 423.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.1159, allocations: 87.88 kB / 423.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004156/0.1163, allocations: 337.6 kB / 423.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004951/0.1168, allocations: 262.1 kB / 423.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.117, allocations: 90.02 kB / 423.8 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006614/0.1176, allocations: 0.5895 MB / 424.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.1177, allocations: 38.55 kB / 424.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.443e-06/0.1177, allocations: 0 / 424.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006111/0.1183, allocations: 253.2 kB / 424.7 MB, free: 6.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.1184, allocations: 114.8 kB / 424.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.1186, allocations: 195.2 kB / 425 MB, free: 5.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.1186, allocations: 25.7 kB / 425 MB, free: 5.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.125e-05/0.1187, allocations: 104.6 kB / 425.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.1187, allocations: 19.89 kB / 425.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.188e-05/0.1188, allocations: 41.7 kB / 425.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1189, allocations: 326.9 kB / 425.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.619e-05/0.119, allocations: 39.97 kB / 425.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.1192, allocations: 161.1 kB / 425.7 MB, free: 4.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.1195, allocations: 204.1 kB / 425.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1195, allocations: 3.938 kB / 425.9 MB, free: 4.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003421/0.1198, allocations: 213.2 kB / 426.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1198, allocations: 8.594 kB / 426.1 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1198, allocations: 7.984 kB / 426.1 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.1199, allocations: 8 kB / 426.2 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.12, allocations: 43.92 kB / 426.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.12, allocations: 15.92 kB / 426.2 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.1201, allocations: 19.83 kB / 426.2 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.1201, allocations: 12 kB / 426.2 MB, free: 4.285 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.0001506/0.1203, allocations: 153.6 kB / 426.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00033/0.1206, allocations: 171.6 kB / 426.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003842/0.121, allocations: 183.3 kB / 426.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.121, allocations: 4 kB / 426.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.121, allocations: 0 / 426.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.121, allocations: 0 / 426.7 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.1213, allocations: 229.5 kB / 427 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.1213, allocations: 0 / 427 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001439/0.1214, allocations: 35.97 kB / 427 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1214, allocations: 0 / 427 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.1214, allocations: 8 kB / 427 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.1214, allocations: 0 / 427 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1214, allocations: 0 / 427 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004608/0.1219, allocations: 300 kB / 427.3 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.122, allocations: 109 kB / 427.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.1221, allocations: 15.98 kB / 427.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.1222, allocations: 11.98 kB / 427.4 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.1222, allocations: 0 / 427.4 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.1222, allocations: 4 kB / 427.4 MB, free: 2.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.1224, allocations: 147.4 kB / 427.6 MB, free: 2.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1224, allocations: 0 / 427.6 MB, free: 2.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.1227, allocations: 32 kB / 427.6 MB, free: 2.797 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.001094/0.1238, allocations: 0.9297 MB / 428.5 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.1241, allocations: 139.8 kB / 428.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1241, allocations: 3.938 kB / 428.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.055e-05/0.1242, allocations: 11.98 kB / 428.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006136/0.1248, allocations: 147.3 kB / 428.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.1274, allocations: 2.169 MB / 431 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.1277, allocations: 0.7357 MB / 431.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.978e-05/0.1278, allocations: 17.55 kB / 431.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.837e-05/0.1279, allocations: 39.42 kB / 431.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1279, allocations: 0 / 431.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.1507, allocations: 4.314 MB / 436.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.008/8.159, allocations: 11.44 kB / 436.1 MB, free: 10.22 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.896837296022568]