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.0011/0.0011, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001196/0.001196, allocations: 187 kB / 19.34 MB, free: 3.641 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.317/1.317, allocations: 222.9 MB / 243 MB, free: 15.08 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.2024/0.2024, allocations: 44.17 MB / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.47 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1024, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002445/0.1049, allocations: 0.8035 MB / 471.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002064/0.1051, allocations: 43.88 kB / 471.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.09e-05/0.1052, allocations: 7.938 kB / 471.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.1053, allocations: 19.86 kB / 471.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.842e-05/0.1053, allocations: 3.938 kB / 471.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001051/0.1054, allocations: 11.98 kB / 471.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.1056, allocations: 43.86 kB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.1057, allocations: 19.97 kB / 471.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.286e-05/0.1057, allocations: 11.94 kB / 471.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.179e-05/0.1057, allocations: 15.91 kB / 471.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.1058, allocations: 4 kB / 471.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.041e-05/0.1058, allocations: 4 kB / 471.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.008e-05/0.1058, allocations: 11.98 kB / 471.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.383e-05/0.1058, allocations: 15.88 kB / 471.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.601e-05/0.1059, allocations: 35.84 kB / 471.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1059, allocations: 0 / 471.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.106, allocations: 0 / 471.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.106, allocations: 0 / 471.8 MB, free: 12.63 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.0004019/0.1064, allocations: 355.4 kB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.1064, allocations: 8.031 kB / 472.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.217e-05/0.1064, allocations: 12.78 kB / 472.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001883/0.1066, allocations: 180.3 kB / 472.3 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1067, allocations: 8.375 kB / 472.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.1067, allocations: 384 / 472.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/0.1068, allocations: 50.25 kB / 472.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.1068, allocations: 192 / 472.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.1068, allocations: 3.938 kB / 472.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1068, allocations: 4 kB / 472.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.175e-05/0.1069, allocations: 12 kB / 472.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004691/0.1074, allocations: 296.6 kB / 472.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.196e-05/0.1074, allocations: 26.56 kB / 472.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.071e-05/0.1075, allocations: 8.922 kB / 472.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.1075, allocations: 0 / 472.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.723e-05/0.1076, allocations: 55.34 kB / 472.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1076, allocations: 0 / 472.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001447/0.1077, allocations: 49.69 kB / 472.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.426e-05/0.1078, allocations: 51.41 kB / 472.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.894e-05/0.1079, allocations: 121.8 kB / 473 MB, free: 11.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.1079, allocations: 29.64 kB / 473 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.108, allocations: 92.12 kB / 473.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.108, allocations: 15.88 kB / 473.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.039e-05/0.108, allocations: 13.72 kB / 473.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1081, allocations: 322.8 kB / 473.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.913e-05/0.1082, allocations: 8 kB / 473.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.735e-05/0.1082, allocations: 21.7 kB / 473.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.723e-05/0.1083, allocations: 25.98 kB / 473.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1083, allocations: 3.938 kB / 473.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.007e-05/0.1083, allocations: 57.62 kB / 473.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1084, allocations: 8 kB / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1084, allocations: 4.031 kB / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1084, allocations: 0 / 473.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.277e-05/0.1084, allocations: 4 kB / 473.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.321e-06/0.1085, allocations: 0 / 473.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.112e-05/0.1085, allocations: 7.906 kB / 473.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.1085, allocations: 3.938 kB / 473.6 MB, free: 10.57 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.199e-05/0.1086, allocations: 121.8 kB / 473.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-06/0.1086, allocations: 0 / 473.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/0.1086, allocations: 7.906 kB / 473.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1087, allocations: 4 kB / 473.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.1087, allocations: 0 / 473.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1087, allocations: 0 / 473.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.109, allocations: 302.5 kB / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.109, allocations: 4 kB / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.048e-05/0.109, allocations: 0 / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.109, allocations: 0 / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.109, allocations: 0 / 474 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1091, allocations: 7.875 kB / 474 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1091, allocations: 4 kB / 474 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.1092, allocations: 155.4 kB / 474.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.355e-05/0.1092, allocations: 77.11 kB / 474.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1093, allocations: 0 / 474.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.958e-05/0.1093, allocations: 7.969 kB / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.442e-05/0.1094, allocations: 0 / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.1094, allocations: 0 / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.345e-05/0.1094, allocations: 103.6 kB / 474.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1094, allocations: 64 / 474.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002225/0.1097, allocations: 11.91 kB / 474.4 MB, free: 9.676 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.734e-05/0.1098, allocations: 99.23 kB / 474.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.162e-05/0.1099, allocations: 19.94 kB / 474.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1099, allocations: 0 / 474.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.682e-05/0.1099, allocations: 4 kB / 474.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.1102, allocations: 19.92 kB / 474.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003085/0.1105, allocations: 142 kB / 474.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.1107, allocations: 0.6885 MB / 475.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.139e-05/0.1107, allocations: 4 kB / 475.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.94e-05/0.1108, allocations: 7.438 kB / 475.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1108, allocations: 0 / 475.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of Templates: time 0.002468/0.1132, allocations: 0.5253 MB / 475.9 MB, free: 8.109 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 -s gbode -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