Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001799/0.001799, 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.002273/0.002273, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2288/0.2288, allocations: 46.94 MB / 360.9 MB, free: 4.266 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002219, allocations: 67.89 kB / 0.4962 GB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3597, allocations: 66.04 MB / 0.5606 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003453/0.3631, allocations: 1.628 MB / 0.5622 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.3642, allocations: 0.5308 MB / 0.5628 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.803e-05/0.3643, allocations: 0 / 0.5628 GB, free: 2.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.3645, allocations: 15.8 kB / 0.5628 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.94e-05/0.3645, allocations: 3.938 kB / 0.5628 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002017/0.3647, allocations: 39.89 kB / 0.5628 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.3649, allocations: 83.7 kB / 0.5629 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.365, allocations: 22.05 kB / 0.5629 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.69e-05/0.3651, allocations: 27.92 kB / 0.5629 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.417e-05/0.3652, allocations: 31.78 kB / 0.563 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.456e-05/0.3652, allocations: 8 kB / 0.563 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.463e-05/0.3652, allocations: 12 kB / 0.563 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.604e-05/0.3652, allocations: 11.98 kB / 0.563 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.444e-05/0.3653, allocations: 39.73 kB / 0.563 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.3655, allocations: 79.59 kB / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3655, allocations: 0 / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3655, allocations: 0 / 0.5631 GB, free: 1.898 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.3655, allocations: 0 / 0.5631 GB, free: 1.898 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.0006304/0.3661, allocations: 326.8 kB / 0.5634 GB, free: 1.547 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.3661, allocations: 16.03 kB / 0.5634 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.619e-05/0.3662, allocations: 34.75 kB / 0.5635 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.574e-05/0.3662, allocations: 8.891 kB / 0.5635 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002814/0.3665, allocations: 146.3 kB / 0.5636 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.3665, allocations: 12.31 kB / 0.5636 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.3665, allocations: 4.375 kB / 0.5636 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001649/0.3667, allocations: 77.8 kB / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3667, allocations: 0 / 0.5637 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.3667, allocations: 7.984 kB / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.3667, allocations: 8 kB / 0.5637 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.48e-05/0.3668, allocations: 31.98 kB / 0.5638 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005988/0.3674, allocations: 319.6 kB / 0.5641 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.3675, allocations: 46.56 kB / 0.5641 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.519e-05/0.3676, allocations: 16.83 kB / 0.5641 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.3676, allocations: 8 kB / 0.5641 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.3678, allocations: 71.41 kB / 0.5642 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.3678, allocations: 0 / 0.5642 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002387/0.368, allocations: 89.56 kB / 0.5643 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.3681, allocations: 51.41 kB / 0.5643 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.3682, allocations: 144.4 kB / 0.5645 GB, free: 352 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.3682, allocations: 25.7 kB / 0.5645 GB, free: 320 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.695e-05/0.3683, allocations: 108.1 kB / 0.5646 GB, free: 208 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.3683, allocations: 23.97 kB / 0.5646 GB, free: 184 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.63e-05/0.3684, allocations: 25.7 kB / 0.5646 GB, free: 152 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.3686, allocations: 318.8 kB / 0.5649 GB, free: 15.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.176e-05/0.3686, allocations: 19.98 kB / 0.565 GB, free: 15.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.407e-05/0.3687, allocations: 38.5 kB / 0.565 GB, free: 15.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.766e-05/0.3688, allocations: 50.52 kB / 0.5651 GB, free: 15.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3688, allocations: 0 / 0.5651 GB, free: 15.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001458/0.3689, allocations: 93.53 kB / 0.5651 GB, free: 15.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.3689, allocations: 4 kB / 0.5651 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3689, allocations: 3.938 kB / 0.5651 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.369, allocations: 4 kB / 0.5652 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.119e-05/0.369, allocations: 4 kB / 0.5652 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.369, allocations: 7.984 kB / 0.5652 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.706e-05/0.3691, allocations: 8.062 kB / 0.5652 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.3691, allocations: 4 kB / 0.5652 GB, free: 15.57 MB / 414.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 0.000114/0.3692, allocations: 121.8 kB / 0.5653 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/0.3693, allocations: 7.953 kB / 0.5653 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.22e-05/0.3693, allocations: 16.64 kB / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.3693, allocations: 4.188 kB / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3693, allocations: 0 / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.3693, allocations: 3.938 kB / 0.5653 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004009/0.3697, allocations: 325.5 kB / 0.5656 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3697, allocations: 4 kB / 0.5656 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.603e-05/0.3698, allocations: 3.938 kB / 0.5656 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3698, allocations: 4 kB / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.3698, allocations: 0 / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3698, allocations: 0 / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3698, allocations: 0 / 0.5656 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002327/0.37, allocations: 195.9 kB / 0.5658 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.775e-05/0.37, allocations: 12.02 kB / 0.5658 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.671e-05/0.3701, allocations: 16.02 kB / 0.5659 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.06e-05/0.3701, allocations: 0 / 0.5659 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.928e-05/0.3702, allocations: 7.984 kB / 0.5659 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-06/0.3702, allocations: 4 kB / 0.5659 GB, free: 14.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.587e-05/0.3703, allocations: 107.2 kB / 0.566 GB, free: 14.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3703, allocations: 0 / 0.566 GB, free: 14.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002245/0.3705, allocations: 16 kB / 0.566 GB, free: 14.66 MB / 414.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.0005511/0.3711, allocations: 0.7358 MB / 0.5667 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000144/0.3712, allocations: 39.92 kB / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3712, allocations: 0 / 0.5667 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.946e-05/0.3713, allocations: 16 kB / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.3716, allocations: 24.81 kB / 0.5668 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001727/0.3733, allocations: 1.522 MB / 0.5683 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.3737, allocations: 0.6968 MB / 0.5689 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.869e-05/0.3737, allocations: 8.422 kB / 0.569 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.248e-05/0.3738, allocations: 31.44 kB / 0.569 GB, free: 11.45 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3738, allocations: 0 / 0.569 GB, free: 11.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03044/0.4042, allocations: 2.359 MB / 0.5713 GB, free: 9.207 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.34, allocations: 15.72 kB / 0.5713 GB, free: 9.199 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.186623553046957]