Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 108.8 kB / 17.33 MB, free: 5.992 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.001284/0.001284, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.325/1.325, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1991/0.1991, allocations: 44.18 MB / 336.2 MB, free: 2.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 64.56 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1064, allocations: 60.83 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002151/0.1086, allocations: 0.8617 MB / 469.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001877/0.1088, allocations: 55.81 kB / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.813e-05/0.1089, allocations: 0 / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.109, allocations: 11.92 kB / 469.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.095e-05/0.1091, allocations: 3.938 kB / 469.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001151/0.1092, allocations: 15.98 kB / 469.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001/0.1093, allocations: 35.92 kB / 469.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.1094, allocations: 12 kB / 469.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.631e-05/0.1095, allocations: 15.92 kB / 469.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.542e-05/0.1095, allocations: 19.86 kB / 469.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.1095, allocations: 4 kB / 469.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.1095, allocations: 4 kB / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.1096, allocations: 7.984 kB / 469.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.091e-05/0.1096, allocations: 19.88 kB / 469.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.152e-05/0.1097, allocations: 35.89 kB / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1097, allocations: 0 / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1097, allocations: 4 kB / 469.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1097, allocations: 0 / 469.8 MB, free: 13.62 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004305/0.1102, allocations: 339.7 kB / 470.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1102, allocations: 16.03 kB / 470.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.1102, allocations: 4.844 kB / 470.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.1104, allocations: 188.2 kB / 470.3 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.216e-06/0.1104, allocations: 384 / 470.3 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.1105, allocations: 8.375 kB / 470.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.1106, allocations: 54.19 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.752e-06/0.1106, allocations: 192 / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1106, allocations: 7.922 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1106, allocations: 3.938 kB / 470.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.261e-05/0.1107, allocations: 15.98 kB / 470.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004594/0.1111, allocations: 296.6 kB / 470.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.776e-05/0.1112, allocations: 22.56 kB / 470.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.968e-05/0.1112, allocations: 12.92 kB / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.1112, allocations: 0 / 470.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001039/0.1113, allocations: 55.34 kB / 470.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1113, allocations: 0 / 470.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001294/0.1115, allocations: 49.69 kB / 470.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.1115, allocations: 51.41 kB / 470.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.597e-05/0.1116, allocations: 113.8 kB / 471 MB, free: 12.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.1116, allocations: 29.7 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.834e-05/0.1117, allocations: 92.03 kB / 471.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.1117, allocations: 3.906 kB / 471.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.1117, allocations: 21.72 kB / 471.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1119, allocations: 322.8 kB / 471.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.783e-05/0.1119, allocations: 7.984 kB / 471.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.586e-05/0.1119, allocations: 21.66 kB / 471.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.72e-05/0.112, allocations: 21.72 kB / 471.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.112, allocations: 0 / 471.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.521e-05/0.1121, allocations: 61.62 kB / 471.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.1121, allocations: 4 kB / 471.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.1121, allocations: 0 / 471.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.1121, allocations: 4 kB / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.05e-05/0.1121, allocations: 0 / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.1122, allocations: 4 kB / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.226e-05/0.1122, allocations: 7.891 kB / 471.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-06/0.1122, allocations: 3.938 kB / 471.6 MB, free: 11.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * 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.864e-05/0.1123, allocations: 113.8 kB / 471.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.1123, allocations: 8.406 kB / 471.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.382e-05/0.1124, allocations: 3.906 kB / 471.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.1124, allocations: 336 / 471.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1124, allocations: 0 / 471.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1124, allocations: 3.938 kB / 471.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002897/0.1127, allocations: 314.5 kB / 472.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1127, allocations: 3.938 kB / 472.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.307e-05/0.1127, allocations: 4 kB / 472.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1127, allocations: 0 / 472.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.1127, allocations: 8 kB / 472.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.1128, allocations: 3.938 kB / 472.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1128, allocations: 0 / 472.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.1129, allocations: 159.4 kB / 472.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.425e-05/0.113, allocations: 81.14 kB / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.113, allocations: 0 / 472.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.603e-05/0.113, allocations: 3.938 kB / 472.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.466e-05/0.1131, allocations: 4 kB / 472.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-06/0.1131, allocations: 8.047 kB / 472.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.831e-05/0.1131, allocations: 87.28 kB / 472.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1131, allocations: 0 / 472.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002115/0.1133, allocations: 11.91 kB / 472.4 MB, free: 10.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 8.117e-05/0.1134, allocations: 99.77 kB / 472.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.515e-05/0.1135, allocations: 15.94 kB / 472.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1135, allocations: 4 kB / 472.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.701e-05/0.1136, allocations: 7.984 kB / 472.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.1138, allocations: 16 kB / 472.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003217/0.1142, allocations: 154 kB / 472.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.1144, allocations: 0.6846 MB / 473.4 MB, free: 9.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.974e-05/0.1144, allocations: 4 kB / 473.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.323e-05/0.1145, allocations: 11.44 kB / 473.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1145, allocations: 4 kB / 473.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of Templates: time 0.002507/0.117, allocations: 0.4899 MB / 473.9 MB, free: 9.129 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches