Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008944/0.0008944, allocations: 193.6 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008162/0.0008162, allocations: 92.06 kB / 299.8 MB, free: 5.352 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2685/0.2685, allocations: 45 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000226/0.0002261, allocations: 8 kB / 470.8 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2461, allocations: 63.09 MB / 0.5214 GB, free: 38.36 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0008256/0.2469, allocations: 0.5273 MB / 0.5219 GB, free: 38 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001628/0.2471, allocations: 43.78 kB / 0.5219 GB, free: 37.97 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.886e-05/0.2472, allocations: 0 / 0.5219 GB, free: 37.97 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.612e-05/0.2473, allocations: 7.172 kB / 0.5219 GB, free: 37.97 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.73e-05/0.2473, allocations: 6.969 kB / 0.5219 GB, free: 37.96 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.475e-05/0.2474, allocations: 13.89 kB / 0.5219 GB, free: 37.96 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.152e-05/0.2475, allocations: 29.98 kB / 0.522 GB, free: 37.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.25e-05/0.2476, allocations: 20.91 kB / 0.522 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.817e-05/0.2476, allocations: 9.781 kB / 0.522 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.422e-05/0.2477, allocations: 7.172 kB / 0.522 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.2477, allocations: 6.812 kB / 0.522 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.206e-06/0.2477, allocations: 0 / 0.522 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.611e-05/0.2477, allocations: 10.89 kB / 0.522 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.275e-05/0.2478, allocations: 40.09 kB / 0.5221 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.589e-05/0.2478, allocations: 29.25 kB / 0.5221 GB, free: 37.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2478, allocations: 0 / 0.5221 GB, free: 37.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2479, allocations: 4 kB / 0.5221 GB, free: 37.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.2479, allocations: 0 / 0.5221 GB, free: 37.86 MB / 378.7 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.0002826/0.2482, allocations: 343.9 kB / 0.5224 GB, free: 37.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2482, allocations: 8.656 kB / 0.5224 GB, free: 37.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.2482, allocations: 3.719 kB / 0.5224 GB, free: 37.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.2483, allocations: 192.5 kB / 0.5226 GB, free: 37.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.2484, allocations: 3.219 kB / 0.5226 GB, free: 37.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.2484, allocations: 7 kB / 0.5226 GB, free: 37.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.204e-05/0.2485, allocations: 48.12 kB / 0.5227 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.2485, allocations: 192 / 0.5227 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.2485, allocations: 7.938 kB / 0.5227 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.2485, allocations: 2.562 kB / 0.5227 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.742e-05/0.2486, allocations: 18.81 kB / 0.5227 GB, free: 37.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/0.249, allocations: 290.2 kB / 0.523 GB, free: 36.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.829e-05/0.249, allocations: 24.39 kB / 0.523 GB, free: 36.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.419e-05/0.249, allocations: 7.797 kB / 0.523 GB, free: 36.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.228e-06/0.249, allocations: 4 kB / 0.523 GB, free: 36.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.715e-05/0.2491, allocations: 50.39 kB / 0.5231 GB, free: 36.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.123e-06/0.2491, allocations: 3.938 kB / 0.5231 GB, free: 36.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001096/0.2492, allocations: 54.84 kB / 0.5231 GB, free: 36.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.2493, allocations: 51.41 kB / 0.5232 GB, free: 36.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.046e-05/0.2494, allocations: 123.8 kB / 0.5233 GB, free: 36.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.003e-06/0.2494, allocations: 28.55 kB / 0.5233 GB, free: 36.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.281e-05/0.2494, allocations: 87.47 kB / 0.5234 GB, free: 36.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.097e-05/0.2494, allocations: 10.66 kB / 0.5234 GB, free: 36.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-06/0.2494, allocations: 0 / 0.5234 GB, free: 36.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.885e-05/0.2495, allocations: 321.7 kB / 0.5237 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.412e-05/0.2495, allocations: 3 kB / 0.5237 GB, free: 36.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.931e-05/0.2495, allocations: 23.77 kB / 0.5237 GB, free: 36.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.038e-05/0.2495, allocations: 28.41 kB / 0.5238 GB, free: 36.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.2496, allocations: 0 / 0.5238 GB, free: 36.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.666e-05/0.2496, allocations: 57.86 kB / 0.5238 GB, free: 36.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.2496, allocations: 5.5 kB / 0.5238 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.2497, allocations: 0 / 0.5238 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2497, allocations: 2.5 kB / 0.5238 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.927e-05/0.2497, allocations: 6.234 kB / 0.5238 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.2497, allocations: 3.984 kB / 0.5238 GB, free: 36.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.934e-05/0.2497, allocations: 6.625 kB / 0.5238 GB, free: 36.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.2498, allocations: 6.812 kB / 0.5239 GB, free: 36.07 MB / 378.7 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 ($whenCondition1,greaterEqualThreshold.y) * 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 4.756e-05/0.2498, allocations: 112.8 kB / 0.524 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.017e-06/0.2498, allocations: 2.594 kB / 0.524 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.685e-05/0.2498, allocations: 7.281 kB / 0.524 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2499, allocations: 0 / 0.524 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2499, allocations: 2.406 kB / 0.524 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.2499, allocations: 0 / 0.524 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.2501, allocations: 316.8 kB / 0.5243 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2501, allocations: 0 / 0.5243 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.773e-05/0.2501, allocations: 48 / 0.5243 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.2501, allocations: 3.984 kB / 0.5243 GB, free: 35.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.2501, allocations: 3.906 kB / 0.5243 GB, free: 35.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2501, allocations: 3.938 kB / 0.5243 GB, free: 35.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2502, allocations: 3.469 kB / 0.5243 GB, free: 35.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.714e-05/0.2503, allocations: 147.1 kB / 0.5244 GB, free: 35.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.71e-05/0.2503, allocations: 89.02 kB / 0.5245 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.2503, allocations: 2.656 kB / 0.5245 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.983e-05/0.2504, allocations: 11.41 kB / 0.5245 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.355e-05/0.2504, allocations: 3.25 kB / 0.5245 GB, free: 35.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.2504, allocations: 0 / 0.5245 GB, free: 35.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.045e-05/0.2504, allocations: 94.23 kB / 0.5246 GB, free: 35.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2504, allocations: 2.875 kB / 0.5246 GB, free: 35.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002188/0.2507, allocations: 6.75 kB / 0.5246 GB, free: 35.27 MB / 378.7 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 6.142e-05/0.2507, allocations: 102.9 kB / 0.5247 GB, free: 35.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.568e-05/0.2508, allocations: 20.03 kB / 0.5247 GB, free: 35.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2508, allocations: 2.531 kB / 0.5247 GB, free: 35.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.561e-05/0.2508, allocations: 5.125 kB / 0.5248 GB, free: 35.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.2511, allocations: 17.09 kB / 0.5248 GB, free: 35.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002071/0.2513, allocations: 141.6 kB / 0.5249 GB, free: 35.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.502e-05/0.2514, allocations: 0.684 MB / 0.5256 GB, free: 34.33 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.884e-05/0.2514, allocations: 7.125 kB / 0.5256 GB, free: 34.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.788e-05/0.2514, allocations: 10.19 kB / 0.5256 GB, free: 34.32 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2514, allocations: 0 / 0.5256 GB, free: 34.32 MB / 378.7 MB Notification: Performance of Templates: time 0.001965/0.2534, allocations: 476.1 kB / 0.526 GB, free: 34.25 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches