Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001527/0.001527, allocations: 111.1 kB / 20.44 MB, free: 1.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 207.1 kB / 23.73 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 230.5 MB / 257.4 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.223/0.223, allocations: 46.94 MB / 360.8 MB, free: 3.93 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00236/0.00236, allocations: 75.88 kB / 0.4962 GB, free: 7.555 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3138, allocations: 66.08 MB / 0.5607 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002825/0.3166, allocations: 1.604 MB / 0.5622 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009163/0.3176, allocations: 491.8 kB / 0.5627 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.563e-05/0.3176, allocations: 7.938 kB / 0.5627 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.3177, allocations: 7.875 kB / 0.5627 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.948e-05/0.3178, allocations: 15.84 kB / 0.5627 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001639/0.318, allocations: 39.84 kB / 0.5628 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.3181, allocations: 75.83 kB / 0.5629 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.3182, allocations: 26.03 kB / 0.5629 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.078e-05/0.3183, allocations: 27.86 kB / 0.5629 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.143e-05/0.3183, allocations: 27.84 kB / 0.5629 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.3184, allocations: 12 kB / 0.5629 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.32e-05/0.3184, allocations: 4 kB / 0.563 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.029e-05/0.3184, allocations: 19.92 kB / 0.563 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.437e-05/0.3184, allocations: 31.8 kB / 0.563 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.3186, allocations: 71.66 kB / 0.5631 GB, free: 1.566 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3186, allocations: 7.938 kB / 0.5631 GB, free: 1.559 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3186, allocations: 0 / 0.5631 GB, free: 1.559 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.3186, allocations: 0 / 0.5631 GB, free: 1.559 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.0005726/0.3192, allocations: 326.8 kB / 0.5634 GB, free: 1.207 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3192, allocations: 16.03 kB / 0.5634 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.778e-05/0.3192, allocations: 34.75 kB / 0.5634 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.211e-05/0.3193, allocations: 8.891 kB / 0.5634 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.3195, allocations: 146.3 kB / 0.5636 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.3195, allocations: 8.359 kB / 0.5636 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.3195, allocations: 8.375 kB / 0.5636 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.3197, allocations: 77.8 kB / 0.5637 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.3197, allocations: 0 / 0.5637 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.3197, allocations: 0 / 0.5637 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.3197, allocations: 7.984 kB / 0.5637 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.105e-05/0.3198, allocations: 35.98 kB / 0.5637 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005564/0.3204, allocations: 303.7 kB / 0.564 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.3205, allocations: 50.5 kB / 0.5641 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.534e-05/0.3205, allocations: 16.92 kB / 0.5641 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.3205, allocations: 7.938 kB / 0.5641 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001405/0.3207, allocations: 67.38 kB / 0.5641 GB, free: 336 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.3207, allocations: 4 kB / 0.5641 GB, free: 332 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002082/0.3209, allocations: 85.52 kB / 0.5642 GB, free: 240 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.3209, allocations: 55.41 kB / 0.5643 GB, free: 172 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.321, allocations: 135.7 kB / 0.5644 GB, free: 28 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.116e-05/0.3211, allocations: 37.69 kB / 0.5644 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.674e-05/0.3212, allocations: 96.09 kB / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.3212, allocations: 23.95 kB / 0.5646 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/0.3212, allocations: 21.72 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3214, allocations: 326.8 kB / 0.5649 GB, free: 15.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.032e-05/0.3214, allocations: 16 kB / 0.5649 GB, free: 15.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.535e-05/0.3215, allocations: 34.56 kB / 0.5649 GB, free: 15.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.105e-05/0.3216, allocations: 58.45 kB / 0.565 GB, free: 15.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3216, allocations: 0 / 0.565 GB, free: 15.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001491/0.3217, allocations: 97.52 kB / 0.5651 GB, free: 15.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.3217, allocations: 4 kB / 0.5651 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3217, allocations: 3.938 kB / 0.5651 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.3218, allocations: 0 / 0.5651 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-05/0.3218, allocations: 8 kB / 0.5651 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.3218, allocations: 0 / 0.5651 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.57e-05/0.3219, allocations: 11.98 kB / 0.5651 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.343e-06/0.3219, allocations: 8.062 kB / 0.5651 GB, free: 15.25 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.322, allocations: 121.8 kB / 0.5652 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.322, allocations: 7.953 kB / 0.5652 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.774e-05/0.3221, allocations: 12.66 kB / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3221, allocations: 0 / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.3221, allocations: 4 kB / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-06/0.3221, allocations: 3.984 kB / 0.5653 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003738/0.3224, allocations: 313.4 kB / 0.5656 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3225, allocations: 4 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.348e-05/0.3225, allocations: 4 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.578e-05/0.3225, allocations: 8 kB / 0.5656 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.3225, allocations: 4 kB / 0.5656 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3225, allocations: 0 / 0.5656 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3225, allocations: 0 / 0.5656 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000228/0.3228, allocations: 192.1 kB / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.719e-05/0.3228, allocations: 7.969 kB / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.3228, allocations: 7.938 kB / 0.5658 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.3229, allocations: 7.984 kB / 0.5658 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.695e-05/0.3229, allocations: 7.984 kB / 0.5658 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-06/0.3229, allocations: 7.938 kB / 0.5658 GB, free: 14.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.77e-05/0.323, allocations: 109.6 kB / 0.5659 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.323, allocations: 4.062 kB / 0.5659 GB, free: 14.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.3232, allocations: 16 kB / 0.5659 GB, free: 14.34 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.0005414/0.3238, allocations: 0.7203 MB / 0.5666 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001349/0.3239, allocations: 51.86 kB / 0.5667 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3239, allocations: 4 kB / 0.5667 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.239e-05/0.324, allocations: 23.92 kB / 0.5667 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.3243, allocations: 15.94 kB / 0.5667 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.326, allocations: 1.522 MB / 0.5682 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.02e-05/0.3261, allocations: 83.19 kB / 0.5683 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.919e-05/0.3261, allocations: 8.422 kB / 0.5683 GB, free: 11.78 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.594e-05/0.3262, allocations: 27.42 kB / 0.5683 GB, free: 11.75 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3262, allocations: 0 / 0.5683 GB, free: 11.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02901/0.3552, allocations: 2.816 MB / 0.5711 GB, free: 9.031 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/11, allocations: 6.812 kB / 0.5711 GB, free: 9.027 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 13.733929550275207]