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.001375/0.001375, allocations: 114.3 kB / 18.49 MB, free: 4.539 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.00144/0.00144, allocations: 219 kB / 21.46 MB, free: 1.586 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.566/1.566, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.2299/0.2299, allocations: 46.91 MB / 357.8 MB, free: 10.37 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.001939/0.001939, allocations: 67.89 kB / 0.4916 GB, free: 7.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1189, allocations: 65.99 MB / 0.5561 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003101/0.122, allocations: 1.619 MB / 0.5576 GB, free: 4.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.123, allocations: 0.5197 MB / 0.5581 GB, free: 3.707 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.1232, allocations: 7.938 kB / 0.5582 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.1233, allocations: 11.86 kB / 0.5582 GB, free: 3.688 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.296e-05/0.1233, allocations: 7.938 kB / 0.5582 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.1235, allocations: 43.83 kB / 0.5582 GB, free: 3.637 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001619/0.1237, allocations: 79.7 kB / 0.5583 GB, free: 3.559 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.1238, allocations: 24.22 kB / 0.5583 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.644e-05/0.1239, allocations: 27.92 kB / 0.5583 GB, free: 3.504 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.065e-05/0.124, allocations: 35.8 kB / 0.5584 GB, free: 3.469 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.863e-05/0.124, allocations: 4 kB / 0.5584 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.565e-05/0.124, allocations: 8 kB / 0.5584 GB, free: 3.457 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.442e-05/0.124, allocations: 19.91 kB / 0.5584 GB, free: 3.438 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.83e-05/0.1241, allocations: 35.8 kB / 0.5584 GB, free: 3.402 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.1242, allocations: 75.59 kB / 0.5585 GB, free: 3.328 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1242, allocations: 0 / 0.5585 GB, free: 3.328 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1242, allocations: 4 kB / 0.5585 GB, free: 3.324 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1242, allocations: 0 / 0.5585 GB, free: 3.324 MB / 414.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.0006291/0.1249, allocations: 395.1 kB / 0.5589 GB, free: 2.891 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1249, allocations: 8.031 kB / 0.5589 GB, free: 2.883 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.222e-05/0.1249, allocations: 4.188 kB / 0.5589 GB, free: 2.879 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.615e-05/0.125, allocations: 34.75 kB / 0.5589 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.374e-05/0.125, allocations: 16.89 kB / 0.559 GB, free: 2.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.1253, allocations: 204.1 kB / 0.5591 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.1253, allocations: 4.375 kB / 0.5592 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.1254, allocations: 8.375 kB / 0.5592 GB, free: 2.57 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.1255, allocations: 79.42 kB / 0.5592 GB, free: 2.488 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/0.1255, allocations: 0 / 0.5592 GB, free: 2.488 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.1256, allocations: 4 kB / 0.5592 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.1256, allocations: 4 kB / 0.5592 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.417e-05/0.1256, allocations: 31.98 kB / 0.5593 GB, free: 2.449 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006678/0.1263, allocations: 360.5 kB / 0.5596 GB, free: 2.047 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.1264, allocations: 46.5 kB / 0.5597 GB, free: 1.992 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.721e-05/0.1265, allocations: 16.89 kB / 0.5597 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.767e-06/0.1265, allocations: 0 / 0.5597 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001396/0.1266, allocations: 75.42 kB / 0.5598 GB, free: 1.887 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.1266, allocations: 0 / 0.5598 GB, free: 1.887 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002544/0.1269, allocations: 85.56 kB / 0.5598 GB, free: 1.797 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.1269, allocations: 59.33 kB / 0.5599 GB, free: 1.727 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.1271, allocations: 139.4 kB / 0.56 GB, free: 1.582 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.1271, allocations: 29.7 kB / 0.5601 GB, free: 1.547 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.804e-05/0.1272, allocations: 96.09 kB / 0.5601 GB, free: 1.449 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.1272, allocations: 19.97 kB / 0.5602 GB, free: 1.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.221e-05/0.1272, allocations: 29.66 kB / 0.5602 GB, free: 1.395 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1274, allocations: 326.8 kB / 0.5605 GB, free: 1.066 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.388e-05/0.1275, allocations: 15.98 kB / 0.5605 GB, free: 1.051 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-05/0.1275, allocations: 38.52 kB / 0.5606 GB, free: 1.004 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.901e-05/0.1276, allocations: 54.5 kB / 0.5606 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1276, allocations: 0 / 0.5606 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001589/0.1278, allocations: 93.52 kB / 0.5607 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1278, allocations: 7.938 kB / 0.5607 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1278, allocations: 4 kB / 0.5607 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.1278, allocations: 0 / 0.5607 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.111e-05/0.1279, allocations: 12 kB / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.1279, allocations: 0 / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.836e-05/0.1279, allocations: 7.984 kB / 0.5607 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.128, allocations: 4 kB / 0.5607 GB, free: 0.8086 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,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 0.000102/0.1281, allocations: 124 kB / 0.5608 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.928e-05/0.1281, allocations: 15.88 kB / 0.5609 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.314e-05/0.1281, allocations: 20.7 kB / 0.5609 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.1281, allocations: 0 / 0.5609 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.1281, allocations: 0 / 0.5609 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.1281, allocations: 0 / 0.5609 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003882/0.1285, allocations: 342.5 kB / 0.5612 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1285, allocations: 3.938 kB / 0.5612 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.37e-05/0.1286, allocations: 4 kB / 0.5612 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.1286, allocations: 0 / 0.5612 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.1286, allocations: 8 kB / 0.5612 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1286, allocations: 4 kB / 0.5612 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.1286, allocations: 0 / 0.5612 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002576/0.1289, allocations: 195.4 kB / 0.5614 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.036e-05/0.1289, allocations: 81.06 kB / 0.5615 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.129, allocations: 8.016 kB / 0.5615 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.118e-05/0.129, allocations: 4 kB / 0.5615 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.1291, allocations: 16.05 kB / 0.5615 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.1291, allocations: 0 / 0.5615 GB, free: 15.9 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.227e-05/0.1292, allocations: 113.2 kB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1292, allocations: 0 / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.1294, allocations: 15.94 kB / 0.5616 GB, free: 15.77 MB / 430.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.0005817/0.13, allocations: 0.7248 MB / 0.5623 GB, free: 15.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001528/0.1302, allocations: 51.91 kB / 0.5624 GB, free: 14.97 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1302, allocations: 192 / 0.5624 GB, free: 14.97 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.548e-05/0.1302, allocations: 20 kB / 0.5624 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.1305, allocations: 23.86 kB / 0.5624 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001743/0.1323, allocations: 1.52 MB / 0.5639 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.1326, allocations: 0.6924 MB / 0.5646 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.056e-05/0.1327, allocations: 8.422 kB / 0.5646 GB, free: 12.59 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.753e-05/0.1327, allocations: 23.44 kB / 0.5646 GB, free: 12.57 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1327, allocations: 0 / 0.5646 GB, free: 12.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.1515, allocations: 2.263 MB / 0.5668 GB, free: 10.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.271/8.422, allocations: 8 kB / 0.5668 GB, free: 10.39 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.538760191004258]