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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 109.8 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009666/0.0009666, allocations: 48.16 kB / 300 MB, free: 6.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1141, allocations: 49.44 MB / 349.4 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004246/0.1184, allocations: 1.9 MB / 351.3 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.1198, allocations: 0.6778 MB / 352 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.12, allocations: 4 kB / 352 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.1202, allocations: 11.86 kB / 352 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.1204, allocations: 23.84 kB / 352 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005432/0.1209, allocations: 143.7 kB / 352.2 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002147/0.1211, allocations: 135.6 kB / 352.3 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.1213, allocations: 69.27 kB / 352.4 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.1215, allocations: 51.72 kB / 352.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.1216, allocations: 59.69 kB / 352.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.1217, allocations: 4 kB / 352.5 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.1218, allocations: 39.97 kB / 352.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.857e-05/0.1219, allocations: 35.83 kB / 352.5 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.421e-05/0.122, allocations: 63.55 kB / 352.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.1222, allocations: 183.4 kB / 352.8 MB, free: 1.375 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.1223, allocations: 0 / 352.8 MB, free: 1.375 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1223, allocations: 3.938 kB / 352.8 MB, free: 1.371 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1223, allocations: 4 kB / 352.8 MB, free: 1.367 MB / 286.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.0007894/0.1231, allocations: 479.1 kB / 353.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1231, allocations: 8.031 kB / 353.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.432e-05/0.1232, allocations: 20.75 kB / 353.3 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.1235, allocations: 235.8 kB / 353.5 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.1235, allocations: 8.562 kB / 353.5 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.1235, allocations: 16.12 kB / 353.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006867/0.1242, allocations: 321.3 kB / 353.9 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.1243, allocations: 0 / 353.9 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.1243, allocations: 7.984 kB / 353.9 MB, free: 196 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1243, allocations: 4 kB / 353.9 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.1245, allocations: 79.89 kB / 354 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004298/0.125, allocations: 349.5 kB / 354.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004964/0.1255, allocations: 266.3 kB / 354.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.1257, allocations: 109.7 kB / 354.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006999/0.1264, allocations: 0.5778 MB / 355.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.1264, allocations: 38.56 kB / 355.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 3.586e-06/0.1264, allocations: 4 kB / 355.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006205/0.1271, allocations: 239.8 kB / 355.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.1272, allocations: 118.7 kB / 355.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.1274, allocations: 199.2 kB / 355.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.1274, allocations: 25.7 kB / 355.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.1275, allocations: 104.7 kB / 356 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.1275, allocations: 23.8 kB / 356 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.809e-05/0.1276, allocations: 37.7 kB / 356 MB, free: 13.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1277, allocations: 322.8 kB / 356.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.23e-05/0.1278, allocations: 43.91 kB / 356.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.1281, allocations: 161.1 kB / 356.5 MB, free: 13.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003119/0.1284, allocations: 204.1 kB / 356.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1284, allocations: 0 / 356.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003286/0.1287, allocations: 221.3 kB / 356.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1288, allocations: 8 kB / 357 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.1288, allocations: 4 kB / 357 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.1288, allocations: 4 kB / 357 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.129, allocations: 51.91 kB / 357 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.129, allocations: 4 kB / 357 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.1291, allocations: 19.83 kB / 357 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.1291, allocations: 15.98 kB / 357 MB, free: 12.59 MB / 302.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.000129/0.1292, allocations: 149.6 kB / 357.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.1296, allocations: 161.3 kB / 357.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003595/0.1299, allocations: 185.7 kB / 357.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.1299, allocations: 4 kB / 357.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1299, allocations: 3.938 kB / 357.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.13, allocations: 0 / 357.5 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002094/0.1302, allocations: 233.5 kB / 357.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.1302, allocations: 3.938 kB / 357.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.1303, allocations: 35.92 kB / 357.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.1304, allocations: 4 kB / 357.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1304, allocations: 3.984 kB / 357.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1304, allocations: 0 / 357.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1304, allocations: 4 kB / 357.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004054/0.1308, allocations: 287.3 kB / 358.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.392e-05/0.1309, allocations: 120.8 kB / 358.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.1309, allocations: 8 kB / 358.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.1311, allocations: 11.98 kB / 358.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.1311, allocations: 0 / 358.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.1311, allocations: 8 kB / 358.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001175/0.1313, allocations: 147.4 kB / 358.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1313, allocations: 4 kB / 358.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003072/0.1316, allocations: 32 kB / 358.4 MB, free: 11.11 MB / 302.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.0001691/0.1318, allocations: 111.2 kB / 358.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003175/0.1321, allocations: 160.2 kB / 358.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1321, allocations: 0 / 358.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.745e-05/0.1321, allocations: 4 kB / 358.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006013/0.1327, allocations: 149.5 kB / 358.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006538/0.1334, allocations: 382.8 kB / 359.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.1337, allocations: 0.7402 MB / 360 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.737e-05/0.1338, allocations: 17.53 kB / 360 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.32e-05/0.1338, allocations: 19.44 kB / 360 MB, free: 9.473 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1338, allocations: 0 / 360 MB, free: 9.473 MB / 302.1 MB Notification: Performance of Templates: time 0.00535/0.1392, allocations: 2.201 MB / 362.2 MB, free: 7.285 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches