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.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.001691/0.001691, allocations: 101.9 kB / 20.48 MB, free: 1.383 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.002116/0.002116, allocations: 217.7 kB / 23.78 MB, free: 4.551 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.582/1.582, allocations: 207.7 MB / 234.6 MB, free: 9.797 MB / 190.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.2213/0.2213, allocations: 44.26 MB / 331.1 MB, free: 9.328 MB / 270.1 MB " [Timeout remaining time 179] 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.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_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 71.89 kB / 468.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1297, allocations: 61.05 MB / 0.5169 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003624/0.1334, allocations: 1.599 MB / 0.5185 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1344, allocations: 0.489 MB / 0.5189 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.1345, allocations: 3.938 kB / 0.519 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.1346, allocations: 7.875 kB / 0.519 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.928e-05/0.1347, allocations: 19.91 kB / 0.519 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.1349, allocations: 39.84 kB / 0.519 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001664/0.1351, allocations: 87.7 kB / 0.5191 GB, free: 4.934 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.1352, allocations: 28.22 kB / 0.5191 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.954e-05/0.1353, allocations: 31.84 kB / 0.5192 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.647e-05/0.1353, allocations: 31.84 kB / 0.5192 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.1354, allocations: 8 kB / 0.5192 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.677e-05/0.1354, allocations: 4 kB / 0.5192 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.49e-05/0.1354, allocations: 19.92 kB / 0.5192 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.225e-05/0.1355, allocations: 31.8 kB / 0.5192 GB, free: 4.781 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.1357, allocations: 75.66 kB / 0.5193 GB, free: 4.707 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1357, allocations: 0 / 0.5193 GB, free: 4.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1357, allocations: 4 kB / 0.5193 GB, free: 4.703 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1357, allocations: 0 / 0.5193 GB, free: 4.703 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.0006362/0.1363, allocations: 326.9 kB / 0.5196 GB, free: 4.352 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.1364, allocations: 12.03 kB / 0.5196 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.247e-05/0.1364, allocations: 192 / 0.5196 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.846e-05/0.1364, allocations: 38.75 kB / 0.5197 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.076e-05/0.1365, allocations: 12.84 kB / 0.5197 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002789/0.1367, allocations: 142.3 kB / 0.5198 GB, free: 4.117 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.1367, allocations: 8.375 kB / 0.5198 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.1368, allocations: 8.375 kB / 0.5198 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.1369, allocations: 77.61 kB / 0.5199 GB, free: 4.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.1369, allocations: 0 / 0.5199 GB, free: 4.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.137, allocations: 7.922 kB / 0.5199 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.137, allocations: 0 / 0.5199 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.504e-05/0.137, allocations: 39.92 kB / 0.52 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005717/0.1376, allocations: 307.7 kB / 0.5203 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.1377, allocations: 46.5 kB / 0.5203 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.69e-05/0.1378, allocations: 16.92 kB / 0.5203 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.1378, allocations: 4 kB / 0.5203 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001347/0.1379, allocations: 71.38 kB / 0.5204 GB, free: 3.469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.1379, allocations: 0 / 0.5204 GB, free: 3.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000235/0.1381, allocations: 89.52 kB / 0.5205 GB, free: 3.375 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.1382, allocations: 51.41 kB / 0.5205 GB, free: 3.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.1384, allocations: 146.7 kB / 0.5207 GB, free: 3.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1384, allocations: 29.7 kB / 0.5207 GB, free: 3.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.487e-05/0.1384, allocations: 96.14 kB / 0.5208 GB, free: 3.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.1385, allocations: 23.97 kB / 0.5208 GB, free: 3.004 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.1385, allocations: 25.72 kB / 0.5208 GB, free: 2.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1387, allocations: 326.8 kB / 0.5211 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.118e-05/0.1387, allocations: 12 kB / 0.5212 GB, free: 2.633 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.018e-05/0.1388, allocations: 42.5 kB / 0.5212 GB, free: 2.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.753e-05/0.1389, allocations: 54.5 kB / 0.5213 GB, free: 2.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1389, allocations: 0 / 0.5213 GB, free: 2.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001583/0.139, allocations: 85.58 kB / 0.5213 GB, free: 2.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.139, allocations: 7.938 kB / 0.5213 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.139, allocations: 0 / 0.5213 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1391, allocations: 4.062 kB / 0.5213 GB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.745e-05/0.1391, allocations: 8 kB / 0.5214 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.71e-06/0.1391, allocations: 3.938 kB / 0.5214 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.591e-05/0.1392, allocations: 19.92 kB / 0.5214 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.1392, allocations: 0 / 0.5214 GB, free: 2.387 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 0.0001072/0.1393, allocations: 117.8 kB / 0.5215 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.084e-05/0.1393, allocations: 15.84 kB / 0.5215 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.702e-05/0.1394, allocations: 8.719 kB / 0.5215 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1394, allocations: 0 / 0.5215 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.1394, allocations: 7.984 kB / 0.5215 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1394, allocations: 7.938 kB / 0.5215 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003772/0.1398, allocations: 309.5 kB / 0.5218 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1398, allocations: 0 / 0.5218 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.833e-05/0.1398, allocations: 4 kB / 0.5218 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1398, allocations: 4 kB / 0.5218 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.1398, allocations: 0 / 0.5218 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.1399, allocations: 7.984 kB / 0.5218 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1399, allocations: 480 / 0.5218 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.1401, allocations: 195.4 kB / 0.522 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.21e-05/0.1401, allocations: 11.97 kB / 0.522 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.1401, allocations: 0 / 0.522 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-05/0.1402, allocations: 12.06 kB / 0.522 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.427e-05/0.1403, allocations: 3.984 kB / 0.5221 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.1403, allocations: 7.984 kB / 0.5221 GB, free: 1.609 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.601e-05/0.1404, allocations: 105.1 kB / 0.5222 GB, free: 1.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1404, allocations: 0 / 0.5222 GB, free: 1.508 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.1406, allocations: 19.94 kB / 0.5222 GB, free: 1.488 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.0005523/0.1412, allocations: 0.7202 MB / 0.5229 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001393/0.1413, allocations: 47.92 kB / 0.5229 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1413, allocations: 384 / 0.5229 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.561e-05/0.1414, allocations: 27.92 kB / 0.523 GB, free: 0.668 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.1417, allocations: 22.73 kB / 0.523 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.1435, allocations: 1.525 MB / 0.5245 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.577e-05/0.1436, allocations: 83.31 kB / 0.5245 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.091e-05/0.1436, allocations: 8.438 kB / 0.5246 GB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.455e-05/0.1437, allocations: 35.41 kB / 0.5246 GB, free: 14.89 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1437, allocations: 0 / 0.5246 GB, free: 14.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.1675, allocations: 2.489 MB / 0.527 GB, free: 12.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/11.83, allocations: 11.94 kB / 0.527 GB, free: 12.39 MB / 414.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 15.241350649972446]