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.001327/0.001327, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.002404/0.002404, allocations: 212.3 kB / 23.74 MB, free: 4.66 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.54/1.54, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.2428/0.2428, allocations: 46.93 MB / 360.8 MB, free: 4.176 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.002506/0.002506, allocations: 83.86 kB / 0.4962 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3252, allocations: 66.07 MB / 0.5607 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003105/0.3283, allocations: 1.643 MB / 0.5623 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.3294, allocations: 0.5152 MB / 0.5628 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.707e-05/0.3294, allocations: 0 / 0.5628 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.3296, allocations: 19.88 kB / 0.5628 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-05/0.3296, allocations: 15.84 kB / 0.5629 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001932/0.3298, allocations: 31.91 kB / 0.5629 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000156/0.33, allocations: 79.78 kB / 0.563 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.3301, allocations: 22.03 kB / 0.563 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.178e-05/0.3301, allocations: 27.92 kB / 0.563 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.702e-05/0.3302, allocations: 35.78 kB / 0.5631 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.456e-05/0.3302, allocations: 7.938 kB / 0.5631 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.554e-05/0.3303, allocations: 8 kB / 0.5631 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.526e-05/0.3303, allocations: 19.92 kB / 0.5631 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.42e-05/0.3303, allocations: 35.81 kB / 0.5631 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.3305, allocations: 75.64 kB / 0.5632 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3305, allocations: 0 / 0.5632 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3305, allocations: 0 / 0.5632 GB, free: 1.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.3305, allocations: 4 kB / 0.5632 GB, free: 1.742 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.0006718/0.3312, allocations: 326.8 kB / 0.5635 GB, free: 1.391 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.3313, allocations: 15.95 kB / 0.5635 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.923e-05/0.3313, allocations: 38.75 kB / 0.5636 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.031e-05/0.3314, allocations: 8.891 kB / 0.5636 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.3317, allocations: 146.3 kB / 0.5637 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.3317, allocations: 4.375 kB / 0.5637 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.3317, allocations: 8.375 kB / 0.5637 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/0.3319, allocations: 77.78 kB / 0.5638 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.3319, allocations: 0 / 0.5638 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.3319, allocations: 4 kB / 0.5638 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.3319, allocations: 0 / 0.5638 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.332, allocations: 39.92 kB / 0.5638 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006826/0.3327, allocations: 323.7 kB / 0.5641 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001215/0.3328, allocations: 42.52 kB / 0.5642 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.859e-05/0.3329, allocations: 20.92 kB / 0.5642 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.3329, allocations: 0 / 0.5642 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.3331, allocations: 75.38 kB / 0.5643 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.552e-06/0.3331, allocations: 0 / 0.5643 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002593/0.3333, allocations: 89.52 kB / 0.5644 GB, free: 412 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.8e-05/0.3334, allocations: 55.41 kB / 0.5644 GB, free: 344 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.3335, allocations: 140.2 kB / 0.5645 GB, free: 196 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.3336, allocations: 29.7 kB / 0.5646 GB, free: 160 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.538e-05/0.3337, allocations: 104.1 kB / 0.5647 GB, free: 52 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.3337, allocations: 27.91 kB / 0.5647 GB, free: 24 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.495e-05/0.3338, allocations: 25.72 kB / 0.5647 GB, free: 15.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3339, allocations: 318.8 kB / 0.565 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.939e-05/0.334, allocations: 12 kB / 0.565 GB, free: 15.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.856e-05/0.334, allocations: 38.56 kB / 0.5651 GB, free: 15.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.864e-05/0.3341, allocations: 54.5 kB / 0.5651 GB, free: 15.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3341, allocations: 4 kB / 0.5651 GB, free: 15.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001471/0.3343, allocations: 89.53 kB / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3343, allocations: 8 kB / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3343, allocations: 3.938 kB / 0.5652 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.3343, allocations: 0 / 0.5652 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.253e-05/0.3344, allocations: 11.94 kB / 0.5652 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3344, allocations: 0 / 0.5652 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.584e-05/0.3345, allocations: 7.984 kB / 0.5653 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-06/0.3345, allocations: 4.188 kB / 0.5653 GB, free: 15.42 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.0001222/0.3346, allocations: 123.2 kB / 0.5654 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.3346, allocations: 11.89 kB / 0.5654 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.303e-05/0.3346, allocations: 16.66 kB / 0.5654 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3346, allocations: 0 / 0.5654 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.3347, allocations: 3.984 kB / 0.5654 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.3347, allocations: 0 / 0.5654 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004109/0.3351, allocations: 325.4 kB / 0.5657 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3351, allocations: 0 / 0.5657 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.272e-05/0.3351, allocations: 15.98 kB / 0.5657 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3351, allocations: 0 / 0.5657 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.3351, allocations: 0 / 0.5657 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3351, allocations: 0 / 0.5657 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.3351, allocations: 4 kB / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002491/0.3354, allocations: 195.8 kB / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/0.3354, allocations: 11.98 kB / 0.5659 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.3354, allocations: 0 / 0.5659 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.549e-05/0.3355, allocations: 16.05 kB / 0.5659 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.3356, allocations: 7.984 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.3356, allocations: 7.922 kB / 0.566 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.452e-05/0.3357, allocations: 105.3 kB / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3357, allocations: 0 / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.3359, allocations: 16 kB / 0.5661 GB, free: 14.5 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.0005676/0.3365, allocations: 0.728 MB / 0.5668 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001484/0.3366, allocations: 39.98 kB / 0.5668 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3366, allocations: 0 / 0.5668 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.145e-05/0.3367, allocations: 23.94 kB / 0.5668 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.337, allocations: 19.97 kB / 0.5669 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.3389, allocations: 1.514 MB / 0.5683 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004645/0.3394, allocations: 0.6963 MB / 0.569 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.079e-05/0.3394, allocations: 4.438 kB / 0.569 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.523e-05/0.3395, allocations: 27.42 kB / 0.5691 GB, free: 11.3 MB / 414.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3395, allocations: 192 / 0.5691 GB, free: 11.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02944/0.3689, allocations: 2.377 MB / 0.5714 GB, free: 9.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.56, allocations: 4.062 kB / 0.5714 GB, free: 9.02 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.603828676976264]