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.001269/0.001269, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.0013/0.0013, allocations: 194 kB / 18.77 MB, free: 4.742 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.336/1.336, allocations: 222.9 MB / 242.4 MB, free: 15.49 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.2016/0.2016, allocations: 44.18 MB / 336.8 MB, free: 3.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 57.62 kB / 408.3 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 60.83 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002213/0.1057, allocations: 0.8539 MB / 470 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001919/0.1059, allocations: 59.81 kB / 470.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.885e-05/0.106, allocations: 0 / 470.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.1061, allocations: 7.922 kB / 470.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.841e-05/0.1062, allocations: 0 / 470.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001088/0.1063, allocations: 19.92 kB / 470.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.582e-05/0.1064, allocations: 35.92 kB / 470.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.757e-05/0.1065, allocations: 15.98 kB / 470.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.463e-05/0.1065, allocations: 15.91 kB / 470.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.062e-05/0.1066, allocations: 11.88 kB / 470.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.1066, allocations: 8 kB / 470.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.18e-05/0.1066, allocations: 4 kB / 470.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.1066, allocations: 7.984 kB / 470.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.183e-05/0.1067, allocations: 15.88 kB / 470.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.449e-05/0.1067, allocations: 19.97 kB / 470.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1068, allocations: 0 / 470.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.1068, allocations: 0 / 470.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1068, allocations: 4 kB / 470.3 MB, free: 13.79 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.0004087/0.1072, allocations: 351.6 kB / 470.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.1072, allocations: 16.03 kB / 470.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.249e-05/0.1073, allocations: 4.844 kB / 470.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1075, allocations: 188.3 kB / 470.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-06/0.1075, allocations: 4.312 kB / 470.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.317e-05/0.1075, allocations: 4.375 kB / 470.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.1076, allocations: 50.25 kB / 470.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.1076, allocations: 192 / 470.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.1077, allocations: 3.938 kB / 470.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.1077, allocations: 0 / 470.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.312e-05/0.1077, allocations: 12 kB / 470.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004829/0.1082, allocations: 296.6 kB / 471.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.404e-05/0.1083, allocations: 26.58 kB / 471.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.691e-05/0.1083, allocations: 4.859 kB / 471.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.1083, allocations: 4.062 kB / 471.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001226/0.1084, allocations: 51.41 kB / 471.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 2.665e-06/0.1084, allocations: 0 / 471.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000136/0.1086, allocations: 61.61 kB / 471.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.1086, allocations: 51.41 kB / 471.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.051e-05/0.1087, allocations: 117.8 kB / 471.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.309e-05/0.1087, allocations: 25.7 kB / 471.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.1088, allocations: 92.05 kB / 471.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.1088, allocations: 11.91 kB / 471.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.1089, allocations: 25.7 kB / 471.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.109, allocations: 318.8 kB / 471.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.912e-05/0.109, allocations: 8 kB / 471.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.839e-05/0.109, allocations: 25.64 kB / 472 MB, free: 11.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.705e-05/0.1091, allocations: 21.72 kB / 472 MB, free: 11.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1091, allocations: 0 / 472 MB, free: 11.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.035e-05/0.1092, allocations: 57.62 kB / 472 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.1092, allocations: 4 kB / 472.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1092, allocations: 0 / 472.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1092, allocations: 384 / 472.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.401e-05/0.1092, allocations: 4 kB / 472.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.1092, allocations: 0 / 472.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.042e-05/0.1093, allocations: 7.906 kB / 472.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-06/0.1093, allocations: 7.875 kB / 472.1 MB, free: 11.73 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 7.543e-05/0.1094, allocations: 113.8 kB / 472.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.289e-05/0.1094, allocations: 7.984 kB / 472.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.238e-05/0.1094, allocations: 11.94 kB / 472.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1094, allocations: 0 / 472.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.1094, allocations: 0 / 472.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1094, allocations: 0 / 472.2 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.1097, allocations: 306.4 kB / 472.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1097, allocations: 0 / 472.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.338e-05/0.1098, allocations: 8 kB / 472.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1098, allocations: 0 / 472.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.1098, allocations: 0 / 472.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1098, allocations: 7.938 kB / 472.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1098, allocations: 0 / 472.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000132/0.11, allocations: 151.4 kB / 472.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.312e-05/0.11, allocations: 85.12 kB / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.11, allocations: 0 / 472.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.886e-05/0.1101, allocations: 7.938 kB / 472.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.676e-05/0.1101, allocations: 432 / 472.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.1101, allocations: 4 kB / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.813e-05/0.1102, allocations: 95.33 kB / 472.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.794e-06/0.1102, allocations: 0 / 472.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1104, allocations: 11.84 kB / 472.9 MB, free: 10.83 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.744e-05/0.1105, allocations: 95.78 kB / 473 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.806e-05/0.1106, allocations: 23.91 kB / 473 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1106, allocations: 0 / 473 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.905e-05/0.1106, allocations: 12 kB / 473 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.1109, allocations: 8.047 kB / 473 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003128/0.1112, allocations: 177.6 kB / 473.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.1115, allocations: 0.6848 MB / 473.9 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.299e-05/0.1115, allocations: 11.44 kB / 473.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1115, allocations: 288 / 473.9 MB, free: 9.75 MB / 350.1 MB Notification: Performance of Templates: time 0.0019/0.1134, allocations: 0.7354 MB / 474.6 MB, free: 9.016 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