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.001848/0.001848, allocations: 112.2 kB / 21.22 MB, free: 0.7266 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.00209/0.00209, allocations: 208.2 kB / 24.52 MB, free: 4.066 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.476/1.476, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.2404/0.2404, allocations: 46.95 MB / 361.7 MB, free: 4.27 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 67.91 kB / 0.4969 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3471, allocations: 66.03 MB / 0.5614 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002996/0.3501, allocations: 1.636 MB / 0.563 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009878/0.3511, allocations: 0.5269 MB / 0.5635 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.156e-05/0.3511, allocations: 0 / 0.5635 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.3513, allocations: 11.88 kB / 0.5635 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.318e-05/0.3513, allocations: 19.84 kB / 0.5635 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001855/0.3515, allocations: 31.91 kB / 0.5636 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001447/0.3516, allocations: 75.78 kB / 0.5637 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.3518, allocations: 22.19 kB / 0.5637 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.082e-05/0.3518, allocations: 39.84 kB / 0.5637 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.331e-05/0.3519, allocations: 35.78 kB / 0.5637 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.3519, allocations: 4 kB / 0.5637 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.589e-05/0.3519, allocations: 8 kB / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.587e-05/0.352, allocations: 11.98 kB / 0.5638 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.026e-05/0.352, allocations: 39.73 kB / 0.5638 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.3522, allocations: 79.59 kB / 0.5639 GB, free: 1.938 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3522, allocations: 0 / 0.5639 GB, free: 1.938 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3522, allocations: 0 / 0.5639 GB, free: 1.938 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.3522, allocations: 0 / 0.5639 GB, free: 1.938 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.0005871/0.3528, allocations: 334.8 kB / 0.5642 GB, free: 1.578 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3528, allocations: 12.03 kB / 0.5642 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.211e-05/0.3528, allocations: 192 / 0.5642 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.3528, allocations: 38.75 kB / 0.5642 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.273e-05/0.3529, allocations: 8.891 kB / 0.5643 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.3531, allocations: 142.3 kB / 0.5644 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.3531, allocations: 8.375 kB / 0.5644 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.3532, allocations: 8.312 kB / 0.5644 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.3533, allocations: 77.61 kB / 0.5645 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3533, allocations: 4 kB / 0.5645 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.3533, allocations: 0 / 0.5645 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.3533, allocations: 3.984 kB / 0.5645 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.771e-05/0.3534, allocations: 39.97 kB / 0.5645 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005896/0.354, allocations: 315.6 kB / 0.5648 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.3541, allocations: 54.64 kB / 0.5649 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.459e-05/0.3542, allocations: 12.86 kB / 0.5649 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.3542, allocations: 0 / 0.5649 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001445/0.3543, allocations: 71.31 kB / 0.565 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.3543, allocations: 0 / 0.565 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002339/0.3546, allocations: 89.56 kB / 0.565 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.3546, allocations: 67.39 kB / 0.5651 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.3547, allocations: 136.5 kB / 0.5652 GB, free: 388 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.3548, allocations: 29.7 kB / 0.5653 GB, free: 352 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.577e-05/0.3548, allocations: 96.09 kB / 0.5654 GB, free: 252 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.191e-05/0.3549, allocations: 27.95 kB / 0.5654 GB, free: 224 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-05/0.3549, allocations: 25.66 kB / 0.5654 GB, free: 192 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3551, allocations: 318.8 kB / 0.5657 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.143e-05/0.3551, allocations: 15.98 kB / 0.5657 GB, free: 15.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.659e-05/0.3552, allocations: 42.52 kB / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.199e-05/0.3553, allocations: 54.5 kB / 0.5658 GB, free: 15.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3553, allocations: 0 / 0.5658 GB, free: 15.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00015/0.3554, allocations: 89.53 kB / 0.5659 GB, free: 15.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.3554, allocations: 11.94 kB / 0.5659 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.3554, allocations: 4.062 kB / 0.5659 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.3555, allocations: 0 / 0.5659 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.572e-05/0.3555, allocations: 8 kB / 0.5659 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3555, allocations: 0 / 0.5659 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.346e-05/0.3556, allocations: 7.984 kB / 0.5659 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.3556, allocations: 8 kB / 0.5659 GB, free: 15.61 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.000108/0.3557, allocations: 121.8 kB / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.007e-05/0.3557, allocations: 11.89 kB / 0.5661 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.837e-05/0.3558, allocations: 16.89 kB / 0.5661 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3558, allocations: 4 kB / 0.5661 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3558, allocations: 3.938 kB / 0.5661 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3558, allocations: 0 / 0.5661 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003686/0.3561, allocations: 325.5 kB / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3561, allocations: 0 / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.887e-05/0.3562, allocations: 7.938 kB / 0.5664 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3562, allocations: 0 / 0.5664 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.3562, allocations: 0 / 0.5664 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.3562, allocations: 4 kB / 0.5664 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.3562, allocations: 0 / 0.5664 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002321/0.3565, allocations: 191.4 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.941e-05/0.3565, allocations: 11.98 kB / 0.5666 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.3565, allocations: 0 / 0.5666 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.585e-05/0.3566, allocations: 11.98 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.762e-05/0.3566, allocations: 7.984 kB / 0.5666 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-06/0.3567, allocations: 0 / 0.5666 GB, free: 14.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.678e-05/0.3567, allocations: 105.6 kB / 0.5667 GB, free: 14.72 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3567, allocations: 4.062 kB / 0.5667 GB, free: 14.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002384/0.357, allocations: 19.98 kB / 0.5668 GB, free: 14.7 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.0005635/0.3575, allocations: 0.7284 MB / 0.5675 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001472/0.3577, allocations: 51.98 kB / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3577, allocations: 192 / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.18e-05/0.3577, allocations: 20 kB / 0.5675 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.3581, allocations: 22.92 kB / 0.5676 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.3597, allocations: 1.518 MB / 0.569 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.3601, allocations: 0.7007 MB / 0.5697 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.797e-05/0.3601, allocations: 8.422 kB / 0.5697 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.785e-05/0.3602, allocations: 23.44 kB / 0.5698 GB, free: 11.48 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3602, allocations: 0 / 0.5698 GB, free: 11.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.3833, allocations: 2.399 MB / 0.5721 GB, free: 9.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.74, allocations: 8.938 kB / 0.5721 GB, free: 9.219 MB / 414.1 MB " [Timeout remaining time 648] (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.813481660035904]