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.001483/0.001483, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001357/0.001357, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.2 MB, free: 15.21 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.2102/0.2102, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 65.28 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1014, allocations: 60.83 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002432/0.1039, allocations: 0.8047 MB / 470.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002206/0.1042, allocations: 47.88 kB / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.643e-05/0.1042, allocations: 3.938 kB / 470.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.645e-05/0.1043, allocations: 7.938 kB / 470.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.874e-05/0.1044, allocations: 3.938 kB / 470.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001078/0.1045, allocations: 19.97 kB / 470.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.828e-05/0.1046, allocations: 35.92 kB / 470.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.1047, allocations: 15.98 kB / 470.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.463e-05/0.1048, allocations: 15.92 kB / 470.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.165e-05/0.1048, allocations: 15.88 kB / 470.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.1048, allocations: 4 kB / 470.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.1048, allocations: 4 kB / 470.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.1049, allocations: 15.97 kB / 470.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.134e-05/0.1049, allocations: 15.88 kB / 470.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.012e-05/0.105, allocations: 35.89 kB / 470.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.105, allocations: 0 / 470.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.105, allocations: 0 / 470.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.105, allocations: 0 / 470.3 MB, free: 13.34 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.0004071/0.1054, allocations: 347.7 kB / 470.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.1055, allocations: 8.031 kB / 470.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.1055, allocations: 8.844 kB / 470.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.1057, allocations: 188.2 kB / 470.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.1057, allocations: 8.375 kB / 470.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.022e-05/0.1057, allocations: 8.375 kB / 470.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.1058, allocations: 42.25 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.1059, allocations: 192 / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.1059, allocations: 11.94 kB / 470.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1059, allocations: 0 / 470.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.504e-05/0.1059, allocations: 15.98 kB / 470.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005004/0.1064, allocations: 292.5 kB / 471.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.411e-05/0.1065, allocations: 26.62 kB / 471.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.788e-05/0.1065, allocations: 8.859 kB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.1066, allocations: 0 / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001313/0.1067, allocations: 55.34 kB / 471.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1067, allocations: 0 / 471.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001447/0.1069, allocations: 57.62 kB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.1069, allocations: 55.41 kB / 471.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.409e-05/0.107, allocations: 113.8 kB / 471.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.107, allocations: 25.7 kB / 471.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.568e-05/0.1071, allocations: 92.05 kB / 471.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.1071, allocations: 7.891 kB / 471.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.144e-05/0.1071, allocations: 17.72 kB / 471.6 MB, free: 11.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1072, allocations: 318.8 kB / 472 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.824e-05/0.1073, allocations: 15.92 kB / 472 MB, free: 11.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.405e-05/0.1073, allocations: 17.72 kB / 472 MB, free: 11.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.786e-05/0.1073, allocations: 25.72 kB / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1073, allocations: 0 / 472 MB, free: 11.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.701e-05/0.1074, allocations: 49.91 kB / 472.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.1075, allocations: 8 kB / 472.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1075, allocations: 0 / 472.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.1075, allocations: 8.062 kB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.288e-05/0.1075, allocations: 4 kB / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.1075, allocations: 0 / 472.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.309e-05/0.1076, allocations: 15.89 kB / 472.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.1076, allocations: 3.938 kB / 472.1 MB, free: 11.28 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.482e-05/0.1077, allocations: 109.8 kB / 472.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.1077, allocations: 0 / 472.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.754e-05/0.1077, allocations: 11.91 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1077, allocations: 0 / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.1077, allocations: 4 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1077, allocations: 0 / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.108, allocations: 310.5 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.108, allocations: 4 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.052e-05/0.1081, allocations: 0 / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1081, allocations: 3.938 kB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.1081, allocations: 4 kB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.1081, allocations: 3.938 kB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1081, allocations: 384 / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000133/0.1082, allocations: 159.4 kB / 472.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.1083, allocations: 77.11 kB / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.1083, allocations: 8.031 kB / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.326e-05/0.1084, allocations: 7.875 kB / 472.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.541e-05/0.1084, allocations: 0 / 472.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.1084, allocations: 3.984 kB / 472.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.307e-05/0.1085, allocations: 91.28 kB / 472.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1085, allocations: 0 / 472.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.1087, allocations: 11.97 kB / 472.9 MB, free: 10.38 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.048e-05/0.1088, allocations: 95.23 kB / 473 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.584e-05/0.1089, allocations: 23.94 kB / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1089, allocations: 0 / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.552e-05/0.1089, allocations: 8 kB / 473 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.1092, allocations: 15.92 kB / 473 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003037/0.1095, allocations: 142.1 kB / 473.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.1097, allocations: 0.6846 MB / 473.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.994e-05/0.1098, allocations: 4 kB / 473.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.168e-05/0.1098, allocations: 11.44 kB / 473.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1098, allocations: 3.938 kB / 473.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of Templates: time 0.002414/0.1122, allocations: 0.524 MB / 474.4 MB, free: 8.812 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