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.001371/0.001371, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001232/0.001233, allocations: 193.3 kB / 18.9 MB, free: 4.48 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.319/1.319, allocations: 222.9 MB / 242.6 MB, free: 15.42 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.1908/0.1908, allocations: 44.18 MB / 336.9 MB, free: 2.965 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 58.12 kB / 408.5 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1104, allocations: 60.83 MB / 469.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002278/0.1127, allocations: 0.8695 MB / 470.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001838/0.1129, allocations: 55.81 kB / 470.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.764e-05/0.113, allocations: 0 / 470.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.1131, allocations: 3.938 kB / 470.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.614e-05/0.1131, allocations: 0 / 470.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.752e-05/0.1132, allocations: 15.98 kB / 470.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.513e-05/0.1133, allocations: 35.92 kB / 470.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.877e-05/0.1134, allocations: 23.97 kB / 470.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.323e-05/0.1135, allocations: 11.94 kB / 470.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.811e-05/0.1135, allocations: 19.86 kB / 470.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.1135, allocations: 4 kB / 470.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.276e-06/0.1135, allocations: 0 / 470.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.675e-05/0.1136, allocations: 11.98 kB / 470.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.736e-05/0.1136, allocations: 15.88 kB / 470.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.792e-05/0.1137, allocations: 35.89 kB / 470.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1137, allocations: 0 / 470.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1137, allocations: 0 / 470.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1137, allocations: 0 / 470.5 MB, free: 13.67 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.0003651/0.1141, allocations: 351.7 kB / 470.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.1141, allocations: 8.031 kB / 470.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.042e-05/0.1141, allocations: 8.844 kB / 470.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.1143, allocations: 172.3 kB / 471 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.1143, allocations: 8.359 kB / 471 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.1143, allocations: 4.375 kB / 471 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.517e-05/0.1144, allocations: 54.23 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.699e-06/0.1144, allocations: 192 / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.1145, allocations: 7.875 kB / 471.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.1145, allocations: 4 kB / 471.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.958e-05/0.1145, allocations: 15.98 kB / 471.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004071/0.1149, allocations: 288.7 kB / 471.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.492e-05/0.115, allocations: 30.5 kB / 471.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.006e-05/0.115, allocations: 8.922 kB / 471.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.173e-06/0.115, allocations: 4 kB / 471.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/0.1152, allocations: 51.41 kB / 471.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.1152, allocations: 0 / 471.5 MB, free: 12.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001076/0.1153, allocations: 49.62 kB / 471.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.1153, allocations: 51.41 kB / 471.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.352e-05/0.1154, allocations: 125.7 kB / 471.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.1154, allocations: 25.7 kB / 471.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.112e-05/0.1155, allocations: 96.03 kB / 471.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.1155, allocations: 11.91 kB / 471.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.594e-05/0.1155, allocations: 13.72 kB / 471.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1156, allocations: 318.8 kB / 472.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.689e-05/0.1157, allocations: 7.984 kB / 472.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.176e-05/0.1157, allocations: 17.72 kB / 472.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.709e-05/0.1157, allocations: 29.66 kB / 472.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-07/0.1157, allocations: 0 / 472.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.148e-05/0.1158, allocations: 54.02 kB / 472.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.1158, allocations: 4 kB / 472.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1158, allocations: 4 kB / 472.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.406e-06/0.1159, allocations: 0 / 472.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.881e-05/0.1159, allocations: 7.938 kB / 472.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.1159, allocations: 0 / 472.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.84e-05/0.1159, allocations: 7.891 kB / 472.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.1159, allocations: 7.938 kB / 472.3 MB, free: 11.62 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 6.814e-05/0.116, allocations: 117.9 kB / 472.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.016e-05/0.116, allocations: 4 kB / 472.4 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.941e-05/0.1161, allocations: 3.906 kB / 472.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.1161, allocations: 4 kB / 472.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1161, allocations: 4 kB / 472.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1161, allocations: 0 / 472.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002597/0.1163, allocations: 310.5 kB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1164, allocations: 0 / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.9e-05/0.1164, allocations: 8 kB / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1164, allocations: 0 / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.1164, allocations: 0 / 472.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1164, allocations: 3.938 kB / 472.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1164, allocations: 0 / 472.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.1166, allocations: 155.4 kB / 472.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.193e-05/0.1166, allocations: 77.11 kB / 473 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.1166, allocations: 0 / 473 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.726e-05/0.1167, allocations: 12.03 kB / 473 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.1167, allocations: 4.359 kB / 473 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.1167, allocations: 3.938 kB / 473 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.233e-05/0.1168, allocations: 95.16 kB / 473.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1168, allocations: 0 / 473.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002132/0.117, allocations: 15.91 kB / 473.1 MB, free: 10.71 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 9.678e-05/0.1171, allocations: 95.77 kB / 473.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.228e-05/0.1172, allocations: 16 kB / 473.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.1172, allocations: 4.062 kB / 473.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.774e-05/0.1172, allocations: 11.92 kB / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.1175, allocations: 8 kB / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002792/0.1177, allocations: 183.7 kB / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.1181, allocations: 0.6846 MB / 474.1 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.806e-05/0.1181, allocations: 11.44 kB / 474.1 MB, free: 9.633 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1181, allocations: 0 / 474.1 MB, free: 9.633 MB / 350.1 MB Notification: Performance of Templates: time 0.001771/0.1199, allocations: 0.7358 MB / 474.8 MB, free: 8.898 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches