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.001521/0.001521, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.002133/0.002133, allocations: 191 kB / 18.63 MB, free: 4.367 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.373/1.373, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 47.5 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1065, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004168/0.1108, allocations: 1.837 MB / 353.4 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.1124, allocations: 0.6894 MB / 354 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.1125, allocations: 4 kB / 354 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.1128, allocations: 19.73 kB / 354.1 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.1129, allocations: 27.78 kB / 354.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006516/0.1136, allocations: 166.6 kB / 354.3 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000241/0.1139, allocations: 143.6 kB / 354.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.114, allocations: 65.31 kB / 354.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.1142, allocations: 59.78 kB / 354.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.1143, allocations: 59.64 kB / 354.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.1143, allocations: 12 kB / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.1144, allocations: 55.95 kB / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.098e-05/0.1145, allocations: 39.83 kB / 354.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.246e-05/0.1146, allocations: 67.61 kB / 354.7 MB, free: 444 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003066/0.1149, allocations: 199.3 kB / 354.9 MB, free: 244 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.115, allocations: 0 / 354.9 MB, free: 244 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.115, allocations: 0 / 354.9 MB, free: 244 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.115, allocations: 3.938 kB / 354.9 MB, free: 240 kB / 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.0008843/0.1159, allocations: 486.8 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.1159, allocations: 11.89 kB / 355.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.559e-05/0.116, allocations: 20.75 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.1164, allocations: 240 kB / 355.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.1164, allocations: 8.562 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.1164, allocations: 20.12 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006525/0.1171, allocations: 314.5 kB / 356 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1171, allocations: 0 / 356 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.1172, allocations: 4 kB / 356 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1172, allocations: 0 / 356 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.1174, allocations: 83.94 kB / 356.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005354/0.118, allocations: 345.4 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005411/0.1185, allocations: 270.4 kB / 356.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.1187, allocations: 101.7 kB / 356.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006868/0.1194, allocations: 0.5817 MB / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.1194, allocations: 34.56 kB / 357.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.513e-06/0.1195, allocations: 4 kB / 357.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006115/0.1201, allocations: 241.2 kB / 357.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001677/0.1203, allocations: 114.8 kB / 357.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.1205, allocations: 198.2 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.1205, allocations: 25.7 kB / 358 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.643e-05/0.1206, allocations: 108.7 kB / 358.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.1206, allocations: 23.73 kB / 358.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.627e-05/0.1207, allocations: 37.72 kB / 358.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1208, allocations: 330.8 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.166e-05/0.1209, allocations: 39.97 kB / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.1211, allocations: 164.2 kB / 358.7 MB, free: 12.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002232/0.1213, allocations: 204.1 kB / 358.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1213, allocations: 0 / 358.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003104/0.1217, allocations: 221.3 kB / 359.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1217, allocations: 8 kB / 359.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.1217, allocations: 4 kB / 359.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.1217, allocations: 4 kB / 359.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.1219, allocations: 43.92 kB / 359.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.1219, allocations: 11.98 kB / 359.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.122, allocations: 19.84 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.122, allocations: 8 kB / 359.2 MB, free: 11.45 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.0001418/0.1222, allocations: 163.4 kB / 359.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002908/0.1225, allocations: 159.5 kB / 359.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000352/0.1228, allocations: 187.3 kB / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.1228, allocations: 0 / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1229, allocations: 4 kB / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.1229, allocations: 0 / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.1231, allocations: 229.5 kB / 359.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.1231, allocations: 7.938 kB / 359.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.1233, allocations: 39.91 kB / 360 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.1233, allocations: 3.938 kB / 360 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.1233, allocations: 4 kB / 360 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1233, allocations: 0 / 360 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1233, allocations: 0 / 360 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.1237, allocations: 288 kB / 360.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.1239, allocations: 116.8 kB / 360.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.1239, allocations: 7.984 kB / 360.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.1241, allocations: 12 kB / 360.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.248e-05/0.1241, allocations: 3.984 kB / 360.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.1241, allocations: 4 kB / 360.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001335/0.1243, allocations: 143.2 kB / 360.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1243, allocations: 7.938 kB / 360.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003062/0.1246, allocations: 28 kB / 360.6 MB, free: 9.961 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.0001794/0.1248, allocations: 115.2 kB / 360.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003349/0.1251, allocations: 144.7 kB / 360.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1251, allocations: 8.125 kB / 360.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.821e-05/0.1252, allocations: 7.984 kB / 360.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005891/0.1258, allocations: 151 kB / 361 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000612/0.1264, allocations: 328.9 kB / 361.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.1267, allocations: 0.7361 MB / 362 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.569e-05/0.1268, allocations: 17.55 kB / 362.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.17e-05/0.1268, allocations: 15.44 kB / 362.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1269, allocations: 0 / 362.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of Templates: time 0.005949/0.1328, allocations: 2.349 MB / 364.4 MB, free: 6.055 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 -s cvode -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/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) Reference file matches