Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001051/0.001051, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2271/0.2271, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 76.2 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3448, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002681/0.3475, allocations: 1.633 MB / 0.5326 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000838/0.3484, allocations: 0.5135 MB / 0.5331 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.452e-05/0.3484, allocations: 1.375 kB / 0.5331 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.3486, allocations: 13.23 kB / 0.5331 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.835e-05/0.3486, allocations: 9.25 kB / 0.5331 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001823/0.3488, allocations: 38.78 kB / 0.5331 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001333/0.349, allocations: 78.02 kB / 0.5332 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.3491, allocations: 28.58 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.472e-05/0.3492, allocations: 29.48 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.822e-05/0.3492, allocations: 30.72 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.95e-05/0.3493, allocations: 6.875 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.271e-05/0.3493, allocations: 9.438 kB / 0.5333 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.391e-05/0.3493, allocations: 20.11 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.719e-05/0.3494, allocations: 36.05 kB / 0.5334 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.3495, allocations: 77.34 kB / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.3495, allocations: 0 / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3495, allocations: 0 / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.3495, allocations: 0 / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000573/0.3501, allocations: 395.2 kB / 0.5338 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.3501, allocations: 13.56 kB / 0.5338 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.467e-05/0.3502, allocations: 14.33 kB / 0.5338 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.3504, allocations: 193.8 kB / 0.534 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.3505, allocations: 8.5 kB / 0.534 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.3505, allocations: 9.875 kB / 0.534 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001457/0.3506, allocations: 74.55 kB / 0.5341 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3507, allocations: 5.359 kB / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.3507, allocations: 4 kB / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.3507, allocations: 2.75 kB / 0.5341 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.829e-05/0.3508, allocations: 31.23 kB / 0.5342 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005426/0.3513, allocations: 362.8 kB / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.3514, allocations: 40.23 kB / 0.5345 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.461e-05/0.3515, allocations: 19.45 kB / 0.5346 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.3515, allocations: 1.125 kB / 0.5346 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000121/0.3516, allocations: 77.88 kB / 0.5346 GB, free: 10.47 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.3516, allocations: 0 / 0.5346 GB, free: 10.47 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002167/0.3519, allocations: 83.45 kB / 0.5347 GB, free: 10.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.3519, allocations: 52.84 kB / 0.5348 GB, free: 10.35 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.352, allocations: 142.4 kB / 0.5349 GB, free: 10.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.3521, allocations: 26.89 kB / 0.5349 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.088e-05/0.3521, allocations: 95.27 kB / 0.535 GB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.3522, allocations: 18.92 kB / 0.535 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.3522, allocations: 29.16 kB / 0.5351 GB, free: 10.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3523, allocations: 321.9 kB / 0.5354 GB, free: 9.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.079e-05/0.3524, allocations: 16.16 kB / 0.5354 GB, free: 9.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.991e-05/0.3524, allocations: 43.05 kB / 0.5354 GB, free: 9.691 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.345e-05/0.3525, allocations: 55.59 kB / 0.5355 GB, free: 9.645 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3525, allocations: 5.156 kB / 0.5355 GB, free: 9.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001365/0.3527, allocations: 83.06 kB / 0.5356 GB, free: 9.586 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.3527, allocations: 5.656 kB / 0.5356 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3527, allocations: 0 / 0.5356 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.3527, allocations: 6.125 kB / 0.5356 GB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.326e-05/0.3528, allocations: 13.62 kB / 0.5356 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.3528, allocations: 2.25 kB / 0.5356 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.64e-05/0.3529, allocations: 16.72 kB / 0.5356 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.3529, allocations: 2.312 kB / 0.5356 GB, free: 9.562 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 8.054e-05/0.353, allocations: 118.5 kB / 0.5357 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.353, allocations: 8.406 kB / 0.5357 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.353, allocations: 22.81 kB / 0.5357 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.353, allocations: 5.141 kB / 0.5358 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.353, allocations: 0 / 0.5358 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3531, allocations: 0 / 0.5358 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003102/0.3534, allocations: 340.8 kB / 0.5361 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3534, allocations: 5.188 kB / 0.5361 GB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.711e-05/0.3534, allocations: 7.281 kB / 0.5361 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3535, allocations: 1.156 kB / 0.5361 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3535, allocations: 4.188 kB / 0.5361 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3535, allocations: 5.125 kB / 0.5361 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3535, allocations: 3.938 kB / 0.5361 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002155/0.3537, allocations: 193.5 kB / 0.5363 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.3538, allocations: 83.45 kB / 0.5364 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.3538, allocations: 1.188 kB / 0.5364 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.008e-05/0.3539, allocations: 11.3 kB / 0.5364 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.3539, allocations: 12.52 kB / 0.5364 GB, free: 8.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.3539, allocations: 1.188 kB / 0.5364 GB, free: 8.762 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.344e-05/0.354, allocations: 105.8 kB / 0.5365 GB, free: 8.676 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.354, allocations: 0 / 0.5365 GB, free: 8.676 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.3543, allocations: 19.41 kB / 0.5365 GB, free: 8.668 MB / 398.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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 0.0001027/0.3544, allocations: 107.5 kB / 0.5366 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.3545, allocations: 43.91 kB / 0.5367 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3546, allocations: 5.625 kB / 0.5367 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.448e-05/0.3546, allocations: 24.53 kB / 0.5367 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.3549, allocations: 20.17 kB / 0.5367 GB, free: 8.523 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/0.3554, allocations: 195.6 kB / 0.5369 GB, free: 8.359 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.3557, allocations: 0.6924 MB / 0.5376 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.854e-05/0.3557, allocations: 17.61 kB / 0.5376 GB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.227e-05/0.3558, allocations: 12.84 kB / 0.5376 GB, free: 7.637 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3558, allocations: 0 / 0.5376 GB, free: 7.637 MB / 398.1 MB Notification: Performance of Templates: time 0.003222/0.359, allocations: 0.9245 MB / 0.5385 GB, free: 7.168 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches