Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 113.3 kB / 17.13 MB, free: 5.754 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 192.6 kB / 20.08 MB, free: 2.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.505/1.505, allocations: 207.6 MB / 230.5 MB, free: 3.965 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3273/0.3273, allocations: 44.23 MB / 326.5 MB, free: 6.789 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 75.89 kB / 462.2 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2706, allocations: 60.99 MB / 0.5109 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002401/0.273, allocations: 1.615 MB / 0.5125 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007519/0.2738, allocations: 0.5309 MB / 0.513 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.846e-05/0.2739, allocations: 1.062 kB / 0.513 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.274, allocations: 13.02 kB / 0.513 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.511e-05/0.274, allocations: 9.188 kB / 0.513 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001622/0.2742, allocations: 40.14 kB / 0.5131 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.2743, allocations: 81.67 kB / 0.5131 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.2744, allocations: 36.06 kB / 0.5132 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.029e-05/0.2744, allocations: 39.12 kB / 0.5132 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.413e-05/0.2745, allocations: 30.5 kB / 0.5132 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.2745, allocations: 10.25 kB / 0.5132 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.2745, allocations: 6.438 kB / 0.5132 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.041e-05/0.2745, allocations: 15.56 kB / 0.5133 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.354e-05/0.2746, allocations: 34.48 kB / 0.5133 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.2747, allocations: 81.64 kB / 0.5134 GB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.2747, allocations: 0 / 0.5134 GB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2747, allocations: 0 / 0.5134 GB, free: 11.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.2747, allocations: 0 / 0.5134 GB, free: 11.21 MB / 382.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.0004582/0.2752, allocations: 385.4 kB / 0.5137 GB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.2752, allocations: 18.27 kB / 0.5138 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.574e-05/0.2752, allocations: 40.14 kB / 0.5138 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.13e-05/0.2753, allocations: 14.38 kB / 0.5138 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.2755, allocations: 194.9 kB / 0.514 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.2755, allocations: 10.84 kB / 0.514 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.078e-05/0.2755, allocations: 13.89 kB / 0.514 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.2756, allocations: 71.73 kB / 0.5141 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2756, allocations: 0 / 0.5141 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.2756, allocations: 5.094 kB / 0.5141 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.2756, allocations: 6.281 kB / 0.5141 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.434e-05/0.2757, allocations: 35.98 kB / 0.5141 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004774/0.2762, allocations: 350.1 kB / 0.5145 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.249e-05/0.2763, allocations: 43.78 kB / 0.5145 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.76e-05/0.2763, allocations: 17.7 kB / 0.5145 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.2763, allocations: 9.375 kB / 0.5145 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001065/0.2764, allocations: 65.94 kB / 0.5146 GB, free: 9.973 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.2764, allocations: 0 / 0.5146 GB, free: 9.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001923/0.2766, allocations: 92.14 kB / 0.5147 GB, free: 9.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/0.2767, allocations: 52.97 kB / 0.5147 GB, free: 9.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.253e-05/0.2767, allocations: 137.5 kB / 0.5149 GB, free: 9.727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.2767, allocations: 30.83 kB / 0.5149 GB, free: 9.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.285e-05/0.2768, allocations: 107.7 kB / 0.515 GB, free: 9.586 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.2768, allocations: 18.64 kB / 0.515 GB, free: 9.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.721e-05/0.2768, allocations: 29.27 kB / 0.515 GB, free: 9.543 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.041e-05/0.2769, allocations: 317.3 kB / 0.5153 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.755e-05/0.2769, allocations: 17.23 kB / 0.5154 GB, free: 9.219 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.107e-05/0.277, allocations: 41.81 kB / 0.5154 GB, free: 9.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.427e-05/0.277, allocations: 56.5 kB / 0.5155 GB, free: 9.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.277, allocations: 0 / 0.5155 GB, free: 9.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001126/0.2771, allocations: 84.52 kB / 0.5155 GB, free: 9.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.2771, allocations: 5.312 kB / 0.5155 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.2772, allocations: 3.938 kB / 0.5155 GB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.2772, allocations: 5.781 kB / 0.5156 GB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.388e-05/0.2772, allocations: 11.14 kB / 0.5156 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2772, allocations: 0 / 0.5156 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.169e-05/0.2773, allocations: 13.44 kB / 0.5156 GB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.2773, allocations: 3.625 kB / 0.5156 GB, free: 9.059 MB / 382.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 5.629e-05/0.2774, allocations: 123.5 kB / 0.5157 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.565e-05/0.2774, allocations: 12.41 kB / 0.5157 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.167e-05/0.2774, allocations: 14.44 kB / 0.5157 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.2774, allocations: 1.062 kB / 0.5157 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2774, allocations: 0 / 0.5157 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2774, allocations: 1.156 kB / 0.5157 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000239/0.2777, allocations: 352.8 kB / 0.5161 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2777, allocations: 0 / 0.5161 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.9e-05/0.2777, allocations: 7.156 kB / 0.5161 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2777, allocations: 1.562 kB / 0.5161 GB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.2777, allocations: 3.984 kB / 0.5161 GB, free: 8.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2777, allocations: 5.625 kB / 0.5161 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2777, allocations: 0 / 0.5161 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001687/0.2779, allocations: 194.6 kB / 0.5163 GB, free: 8.371 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.77e-05/0.2779, allocations: 86.44 kB / 0.5163 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.2779, allocations: 1.375 kB / 0.5163 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.02e-05/0.278, allocations: 8.109 kB / 0.5164 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.694e-05/0.2781, allocations: 10.73 kB / 0.5164 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.2781, allocations: 2.75 kB / 0.5164 GB, free: 8.258 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.428e-05/0.2781, allocations: 106.4 kB / 0.5165 GB, free: 8.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2781, allocations: 0 / 0.5165 GB, free: 8.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.2783, allocations: 12.38 kB / 0.5165 GB, free: 8.168 MB / 382.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.0003082/0.2787, allocations: 0.7451 MB / 0.5172 GB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.2788, allocations: 42.05 kB / 0.5172 GB, free: 7.434 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2788, allocations: 0 / 0.5172 GB, free: 7.434 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.813e-05/0.2788, allocations: 20.36 kB / 0.5173 GB, free: 7.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.2791, allocations: 18.59 kB / 0.5173 GB, free: 7.418 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.2803, allocations: 1.528 MB / 0.5188 GB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.2804, allocations: 0.6975 MB / 0.5195 GB, free: 5.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.702e-05/0.2805, allocations: 9.125 kB / 0.5195 GB, free: 5.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/0.2805, allocations: 27.86 kB / 0.5195 GB, free: 5.289 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2805, allocations: 0 / 0.5195 GB, free: 5.289 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.3051, allocations: 2.247 MB / 0.5217 GB, free: 3.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.189/8.494, allocations: 14.56 kB / 0.5217 GB, free: 3.426 MB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 11.25613670842722]