Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001298/0.001302, allocations: 200.5 kB / 17.43 MB, free: 4.273 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.32 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007527/0.0007527, allocations: 96.73 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2641/0.2641, allocations: 45.01 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002348/0.0002349, allocations: 11.98 kB / 470.8 MB, free: 7.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2447, allocations: 63.1 MB / 0.5214 GB, free: 38.44 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00134/0.2461, allocations: 1.33 MB / 0.5227 GB, free: 37.47 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007235/0.2468, allocations: 0.6914 MB / 0.5233 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.871e-05/0.2469, allocations: 2.625 kB / 0.5233 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.038e-05/0.247, allocations: 19.16 kB / 0.5234 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.012e-05/0.247, allocations: 10.8 kB / 0.5234 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.2473, allocations: 75.45 kB / 0.5234 GB, free: 36.85 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.2474, allocations: 111.1 kB / 0.5236 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.629e-05/0.2475, allocations: 21.56 kB / 0.5236 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.346e-05/0.2476, allocations: 50.19 kB / 0.5236 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.374e-05/0.2476, allocations: 29.27 kB / 0.5236 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.2477, allocations: 6.828 kB / 0.5237 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.125e-05/0.2477, allocations: 6.031 kB / 0.5237 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.2477, allocations: 14.14 kB / 0.5237 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.32e-05/0.2477, allocations: 59.48 kB / 0.5237 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.65e-05/0.2478, allocations: 80.55 kB / 0.5238 GB, free: 36.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2478, allocations: 0 / 0.5238 GB, free: 36.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2479, allocations: 0 / 0.5238 GB, free: 36.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.2479, allocations: 0 / 0.5238 GB, free: 36.66 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004797/0.2484, allocations: 398 kB / 0.5242 GB, free: 36.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/0.2484, allocations: 8.031 kB / 0.5242 GB, free: 36.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.064e-05/0.2484, allocations: 10.03 kB / 0.5242 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.2486, allocations: 208.7 kB / 0.5244 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.2486, allocations: 7 kB / 0.5244 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.2486, allocations: 9.844 kB / 0.5244 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.2489, allocations: 108.1 kB / 0.5245 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.2489, allocations: 0 / 0.5245 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.2489, allocations: 10.55 kB / 0.5245 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.788e-06/0.2489, allocations: 0 / 0.5245 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.2491, allocations: 56.5 kB / 0.5246 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005339/0.2496, allocations: 409.8 kB / 0.525 GB, free: 35.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00029/0.2499, allocations: 115.7 kB / 0.5251 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.884e-05/0.25, allocations: 45.59 kB / 0.5251 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.25, allocations: 2.969 kB / 0.5251 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.2503, allocations: 106.5 kB / 0.5252 GB, free: 35.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2503, allocations: 0 / 0.5252 GB, free: 35.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003766/0.2506, allocations: 158.2 kB / 0.5254 GB, free: 35.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.2507, allocations: 55.34 kB / 0.5254 GB, free: 35.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.535e-05/0.2508, allocations: 154 kB / 0.5256 GB, free: 35.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.2508, allocations: 33.64 kB / 0.5256 GB, free: 35.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.267e-05/0.2508, allocations: 105.7 kB / 0.5257 GB, free: 35.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.2508, allocations: 15.05 kB / 0.5257 GB, free: 35.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/0.2509, allocations: 4 kB / 0.5257 GB, free: 35.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.249e-05/0.2509, allocations: 324.8 kB / 0.526 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.251, allocations: 37.19 kB / 0.5261 GB, free: 34.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.2511, allocations: 61.97 kB / 0.5261 GB, free: 34.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.2513, allocations: 81.3 kB / 0.5262 GB, free: 34.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2513, allocations: 4 kB / 0.5262 GB, free: 34.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002318/0.2516, allocations: 122.5 kB / 0.5263 GB, free: 34.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.2516, allocations: 7.094 kB / 0.5263 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.2516, allocations: 6.906 kB / 0.5264 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.2516, allocations: 0 / 0.5264 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.866e-05/0.2517, allocations: 21.72 kB / 0.5264 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.2517, allocations: 0 / 0.5264 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.355e-05/0.2518, allocations: 25.89 kB / 0.5264 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.2518, allocations: 2.875 kB / 0.5264 GB, free: 34.67 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: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 5.507e-05/0.2519, allocations: 120.6 kB / 0.5265 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.2519, allocations: 13.62 kB / 0.5265 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.2519, allocations: 15.59 kB / 0.5265 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2519, allocations: 0 / 0.5265 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.2519, allocations: 0 / 0.5265 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2519, allocations: 2.812 kB / 0.5265 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.2523, allocations: 401.8 kB / 0.5269 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2523, allocations: 0 / 0.5269 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.547e-05/0.2524, allocations: 19.86 kB / 0.5269 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2524, allocations: 0 / 0.5269 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.2525, allocations: 4 kB / 0.527 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2525, allocations: 6.969 kB / 0.527 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2525, allocations: 3.328 kB / 0.527 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003544/0.2528, allocations: 259 kB / 0.5272 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.248e-05/0.2529, allocations: 84.48 kB / 0.5273 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.2529, allocations: 6.938 kB / 0.5273 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.253, allocations: 28.17 kB / 0.5273 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.2531, allocations: 8.547 kB / 0.5273 GB, free: 33.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.2531, allocations: 13.88 kB / 0.5273 GB, free: 33.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.834e-05/0.2531, allocations: 108.5 kB / 0.5274 GB, free: 33.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2531, allocations: 3.938 kB / 0.5275 GB, free: 33.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000193/0.2533, allocations: 15.78 kB / 0.5275 GB, free: 33.8 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 7.007e-05/0.2534, allocations: 99.44 kB / 0.5276 GB, free: 33.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002481/0.2537, allocations: 95.27 kB / 0.5277 GB, free: 33.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2537, allocations: 0 / 0.5277 GB, free: 33.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.2538, allocations: 55.09 kB / 0.5277 GB, free: 33.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.2541, allocations: 17.12 kB / 0.5277 GB, free: 33.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004047/0.2545, allocations: 246.7 kB / 0.528 GB, free: 33.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.2546, allocations: 0.6954 MB / 0.5286 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.04e-05/0.2546, allocations: 17.91 kB / 0.5287 GB, free: 32.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.849e-05/0.2547, allocations: 13.25 kB / 0.5287 GB, free: 32.77 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2547, allocations: 0 / 0.5287 GB, free: 32.77 MB / 378.7 MB Notification: Performance of Templates: time 0.002693/0.2574, allocations: 1.067 MB / 0.5297 GB, free: 32.66 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches