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.001682/0.001682, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002127/0.002127, allocations: 210.4 kB / 23.73 MB, free: 4.523 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.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2314/0.2314, allocations: 46.96 MB / 360.9 MB, free: 4.027 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.002033/0.002033, allocations: 71.83 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3625, allocations: 66.03 MB / 0.5606 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003013/0.3656, allocations: 1.609 MB / 0.5622 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009353/0.3665, allocations: 495.7 kB / 0.5626 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.385e-05/0.3666, allocations: 0 / 0.5626 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.3667, allocations: 15.86 kB / 0.5626 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.362e-05/0.3667, allocations: 15.88 kB / 0.5627 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001757/0.3669, allocations: 31.91 kB / 0.5627 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.3671, allocations: 71.83 kB / 0.5628 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.3672, allocations: 29.97 kB / 0.5628 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.558e-05/0.3673, allocations: 35.86 kB / 0.5628 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.357e-05/0.3673, allocations: 31.8 kB / 0.5628 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.3674, allocations: 4 kB / 0.5629 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.36e-05/0.3674, allocations: 8 kB / 0.5629 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.626e-05/0.3674, allocations: 15.98 kB / 0.5629 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.134e-05/0.3674, allocations: 35.78 kB / 0.5629 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.3676, allocations: 67.66 kB / 0.563 GB, free: 1.762 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3676, allocations: 8 kB / 0.563 GB, free: 1.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3676, allocations: 0 / 0.563 GB, free: 1.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.3676, allocations: 0 / 0.563 GB, free: 1.754 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.000585/0.3682, allocations: 330.8 kB / 0.5633 GB, free: 1.398 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3682, allocations: 8.031 kB / 0.5633 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.684e-05/0.3683, allocations: 42.73 kB / 0.5633 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.52e-05/0.3683, allocations: 8.891 kB / 0.5634 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.3686, allocations: 134.4 kB / 0.5635 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.3686, allocations: 12.38 kB / 0.5635 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.162e-05/0.3686, allocations: 8.375 kB / 0.5635 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.3688, allocations: 84.67 kB / 0.5636 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3688, allocations: 0 / 0.5636 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.3688, allocations: 4 kB / 0.5636 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.207e-06/0.3688, allocations: 0 / 0.5636 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.049e-05/0.3689, allocations: 31.98 kB / 0.5636 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005701/0.3695, allocations: 311.6 kB / 0.5639 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.3696, allocations: 46.58 kB / 0.564 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.47e-05/0.3696, allocations: 20.92 kB / 0.564 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.3696, allocations: 3.938 kB / 0.564 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001326/0.3698, allocations: 71.33 kB / 0.5641 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.322e-06/0.3698, allocations: 0 / 0.5641 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000219/0.37, allocations: 89.58 kB / 0.5641 GB, free: 440 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.37, allocations: 51.41 kB / 0.5642 GB, free: 376 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.3702, allocations: 140.6 kB / 0.5643 GB, free: 228 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.3702, allocations: 29.7 kB / 0.5643 GB, free: 192 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.659e-05/0.3702, allocations: 108 kB / 0.5644 GB, free: 80 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.3703, allocations: 15.97 kB / 0.5645 GB, free: 64 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.701e-05/0.3703, allocations: 29.72 kB / 0.5645 GB, free: 28 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.3705, allocations: 326.8 kB / 0.5648 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.761e-05/0.3705, allocations: 12 kB / 0.5648 GB, free: 15.69 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.626e-05/0.3706, allocations: 42.5 kB / 0.5649 GB, free: 15.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.144e-05/0.3706, allocations: 50.56 kB / 0.5649 GB, free: 15.58 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3706, allocations: 0 / 0.5649 GB, free: 15.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001391/0.3708, allocations: 89.53 kB / 0.565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.3708, allocations: 8 kB / 0.565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3708, allocations: 8 kB / 0.565 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.3708, allocations: 0 / 0.565 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.264e-05/0.3709, allocations: 11.94 kB / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.3709, allocations: 400 / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.475e-05/0.3709, allocations: 7.984 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-06/0.371, allocations: 4 kB / 0.565 GB, free: 15.45 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.0001108/0.3711, allocations: 117.8 kB / 0.5651 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.3711, allocations: 7.953 kB / 0.5651 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.3711, allocations: 16.66 kB / 0.5652 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3711, allocations: 3.984 kB / 0.5652 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.3711, allocations: 4 kB / 0.5652 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3711, allocations: 0 / 0.5652 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.3715, allocations: 321.4 kB / 0.5655 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3715, allocations: 0 / 0.5655 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-05/0.3715, allocations: 4 kB / 0.5655 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.3715, allocations: 0 / 0.5655 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.3715, allocations: 7.984 kB / 0.5655 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3715, allocations: 0 / 0.5655 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3715, allocations: 3.984 kB / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002196/0.3718, allocations: 195.6 kB / 0.5657 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.322e-05/0.3718, allocations: 11.94 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.3718, allocations: 12 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.658e-05/0.3719, allocations: 0 / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.3719, allocations: 15.92 kB / 0.5657 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.372, allocations: 11.98 kB / 0.5657 GB, free: 14.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.967e-05/0.372, allocations: 103.3 kB / 0.5658 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.372, allocations: 0 / 0.5658 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.3723, allocations: 12 kB / 0.5658 GB, free: 14.53 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.0005031/0.3728, allocations: 0.7202 MB / 0.5665 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.3729, allocations: 44.05 kB / 0.5666 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.3729, allocations: 8.062 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.303e-05/0.373, allocations: 23.97 kB / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.3733, allocations: 18.33 kB / 0.5666 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.3749, allocations: 1.518 MB / 0.5681 GB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.804e-05/0.3749, allocations: 87.17 kB / 0.5682 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.375e-05/0.375, allocations: 8.438 kB / 0.5682 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.583e-05/0.375, allocations: 27.42 kB / 0.5682 GB, free: 11.95 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.375, allocations: 0 / 0.5682 GB, free: 11.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03089/0.4059, allocations: 2.823 MB / 0.571 GB, free: 9.258 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.13, allocations: 3.984 kB / 0.571 GB, free: 9.254 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.10448932601139]