Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 212.7 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.235/0.235, allocations: 44.91 MB / 358.8 MB, free: 6.293 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002079/0.002079, allocations: 67.89 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3379, allocations: 65.48 MB / 0.557 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003239/0.3412, allocations: 1.622 MB / 0.5586 GB, free: 6.176 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009809/0.3421, allocations: 0.5347 MB / 0.5591 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.693e-05/0.3422, allocations: 0 / 0.5591 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.3423, allocations: 11.86 kB / 0.5591 GB, free: 5.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.671e-05/0.3424, allocations: 15.86 kB / 0.5592 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001791/0.3425, allocations: 35.91 kB / 0.5592 GB, free: 5.574 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.3427, allocations: 75.77 kB / 0.5593 GB, free: 5.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.3428, allocations: 33.97 kB / 0.5593 GB, free: 5.469 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.996e-05/0.3428, allocations: 27.92 kB / 0.5593 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.847e-05/0.3429, allocations: 31.8 kB / 0.5594 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.3429, allocations: 4 kB / 0.5594 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.614e-05/0.3429, allocations: 8 kB / 0.5594 GB, free: 5.398 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.251e-05/0.343, allocations: 11.98 kB / 0.5594 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.035e-05/0.343, allocations: 43.73 kB / 0.5594 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.3432, allocations: 79.58 kB / 0.5595 GB, free: 5.266 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3432, allocations: 0 / 0.5595 GB, free: 5.266 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3432, allocations: 0 / 0.5595 GB, free: 5.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3432, allocations: 0 / 0.5595 GB, free: 5.266 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.0005682/0.3437, allocations: 330.8 kB / 0.5598 GB, free: 4.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.3438, allocations: 12.03 kB / 0.5598 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.458e-05/0.3438, allocations: 38.73 kB / 0.5599 GB, free: 4.852 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.79e-05/0.3439, allocations: 16.89 kB / 0.5599 GB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.3441, allocations: 130.4 kB / 0.56 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.3441, allocations: 8.375 kB / 0.56 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.3442, allocations: 12.31 kB / 0.56 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001634/0.3443, allocations: 81.78 kB / 0.5601 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3443, allocations: 0 / 0.5601 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.3443, allocations: 0 / 0.5601 GB, free: 4.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.3444, allocations: 4 kB / 0.5601 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.579e-05/0.3445, allocations: 38.94 kB / 0.5601 GB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005809/0.345, allocations: 319.6 kB / 0.5604 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.3451, allocations: 50.56 kB / 0.5605 GB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.462e-05/0.3452, allocations: 16.89 kB / 0.5605 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.3452, allocations: 0 / 0.5605 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.3453, allocations: 71.31 kB / 0.5606 GB, free: 4.023 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.3453, allocations: 0 / 0.5606 GB, free: 4.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.00022/0.3456, allocations: 89.56 kB / 0.5607 GB, free: 3.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.3456, allocations: 51.41 kB / 0.5607 GB, free: 3.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.3457, allocations: 140.5 kB / 0.5608 GB, free: 3.723 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.3458, allocations: 33.7 kB / 0.5609 GB, free: 3.684 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.664e-05/0.3458, allocations: 104.1 kB / 0.561 GB, free: 3.578 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.3459, allocations: 19.97 kB / 0.561 GB, free: 3.559 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.652e-05/0.3459, allocations: 29.64 kB / 0.561 GB, free: 3.523 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3461, allocations: 322.8 kB / 0.5613 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.902e-05/0.3461, allocations: 16 kB / 0.5613 GB, free: 3.184 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.19e-05/0.3462, allocations: 42.5 kB / 0.5614 GB, free: 3.133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.637e-05/0.3462, allocations: 50.81 kB / 0.5614 GB, free: 3.074 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3462, allocations: 4 kB / 0.5614 GB, free: 3.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001385/0.3464, allocations: 93.52 kB / 0.5615 GB, free: 2.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.3464, allocations: 4 kB / 0.5615 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.994e-06/0.3464, allocations: 7.938 kB / 0.5615 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3464, allocations: 4.062 kB / 0.5615 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.074e-05/0.3465, allocations: 7.984 kB / 0.5615 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3465, allocations: 4 kB / 0.5616 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.91e-05/0.3465, allocations: 4 kB / 0.5616 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.3466, allocations: 8 kB / 0.5616 GB, free: 2.934 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$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 9.468e-05/0.3467, allocations: 121.8 kB / 0.5617 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.609e-05/0.3467, allocations: 7.953 kB / 0.5617 GB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.43e-05/0.3467, allocations: 12.66 kB / 0.5617 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3467, allocations: 4 kB / 0.5617 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3467, allocations: 4 kB / 0.5617 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3467, allocations: 0 / 0.5617 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003578/0.3471, allocations: 325.5 kB / 0.562 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3471, allocations: 0 / 0.562 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.808e-05/0.3471, allocations: 7.938 kB / 0.562 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3471, allocations: 0 / 0.562 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.3471, allocations: 4 kB / 0.562 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3471, allocations: 3.984 kB / 0.562 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3471, allocations: 0 / 0.562 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002429/0.3474, allocations: 191.4 kB / 0.5622 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.529e-05/0.3474, allocations: 8.156 kB / 0.5622 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.853e-05/0.3474, allocations: 8 kB / 0.5622 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.3475, allocations: 7.938 kB / 0.5622 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.044e-05/0.3475, allocations: 3.984 kB / 0.5622 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.3476, allocations: 7.984 kB / 0.5622 GB, free: 2.148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.466e-05/0.3476, allocations: 103.3 kB / 0.5623 GB, free: 2.047 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3476, allocations: 4.062 kB / 0.5624 GB, free: 2.043 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.3479, allocations: 16 kB / 0.5624 GB, free: 2.027 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,fallingEdge.not_u,booleanPulse.pulseStart) * 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.0005156/0.3484, allocations: 0.724 MB / 0.5631 GB, free: 1.277 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.3485, allocations: 47.92 kB / 0.5631 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3485, allocations: 0 / 0.5631 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.806e-05/0.3486, allocations: 24.64 kB / 0.5631 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.3489, allocations: 22.11 kB / 0.5632 GB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.3505, allocations: 1.522 MB / 0.5647 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.3509, allocations: 0.6968 MB / 0.5653 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.855e-05/0.3509, allocations: 8.422 kB / 0.5653 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.548e-05/0.351, allocations: 27.42 kB / 0.5654 GB, free: 14.82 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.351, allocations: 0 / 0.5654 GB, free: 14.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02895/0.3799, allocations: 2.355 MB / 0.5677 GB, free: 12.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.46, allocations: 8.812 kB / 0.5677 GB, free: 12.58 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.41753782890737]