Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.001411/0.001411, 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.002175/0.002175, 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.471/1.471, allocations: 230.5 MB / 257.4 MB, free: 7.766 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.2822/0.2822, allocations: 46.95 MB / 360.8 MB, free: 4.023 MB / 286.1 MB " [Timeout remaining time 179] 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 87.8 kB / 0.4961 GB, free: 7.574 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3606, allocations: 66.08 MB / 0.5607 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002129/0.3628, allocations: 0.8008 MB / 0.5615 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002074/0.363, allocations: 47.83 kB / 0.5615 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.094e-05/0.363, allocations: 0 / 0.5615 GB, free: 3.199 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.3631, allocations: 15.86 kB / 0.5615 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.537e-05/0.3632, allocations: 0 / 0.5615 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001183/0.3633, allocations: 23.92 kB / 0.5615 GB, free: 3.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001117/0.3634, allocations: 27.98 kB / 0.5616 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.3635, allocations: 17.81 kB / 0.5616 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.079e-05/0.3635, allocations: 15.88 kB / 0.5616 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.67e-05/0.3636, allocations: 15.86 kB / 0.5616 GB, free: 3.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.3636, allocations: 4 kB / 0.5616 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.161e-05/0.3636, allocations: 11.94 kB / 0.5616 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.086e-05/0.3636, allocations: 7.984 kB / 0.5616 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.144e-05/0.3637, allocations: 11.94 kB / 0.5617 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.3638, allocations: 39.77 kB / 0.5617 GB, free: 3.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.3638, allocations: 0 / 0.5617 GB, free: 3.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3638, allocations: 0 / 0.5617 GB, free: 3.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.3638, allocations: 4 kB / 0.5617 GB, free: 3.008 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004981/0.3643, allocations: 279.1 kB / 0.562 GB, free: 2.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.3643, allocations: 8.031 kB / 0.562 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.3644, allocations: 30.75 kB / 0.562 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.965e-05/0.3644, allocations: 12.89 kB / 0.562 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.3646, allocations: 126.5 kB / 0.5621 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.3646, allocations: 4.312 kB / 0.5621 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.3647, allocations: 8.375 kB / 0.5621 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.3648, allocations: 46.25 kB / 0.5622 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3648, allocations: 3.938 kB / 0.5622 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.3648, allocations: 4 kB / 0.5622 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.3648, allocations: 0 / 0.5622 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.978e-05/0.3648, allocations: 12 kB / 0.5622 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004735/0.3653, allocations: 263.8 kB / 0.5625 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.705e-05/0.3654, allocations: 22.58 kB / 0.5625 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.661e-05/0.3654, allocations: 8.922 kB / 0.5625 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.152e-06/0.3654, allocations: 0 / 0.5625 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.792e-05/0.3655, allocations: 59.36 kB / 0.5625 GB, free: 1.996 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.3655, allocations: 0 / 0.5625 GB, free: 1.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001337/0.3656, allocations: 53.56 kB / 0.5626 GB, free: 1.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.3656, allocations: 55.41 kB / 0.5627 GB, free: 1.871 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.3658, allocations: 113.8 kB / 0.5628 GB, free: 1.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.3658, allocations: 29.7 kB / 0.5628 GB, free: 1.715 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.066e-05/0.3658, allocations: 100.5 kB / 0.5629 GB, free: 1.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.3658, allocations: 7.938 kB / 0.5629 GB, free: 1.605 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.984e-05/0.3659, allocations: 17.72 kB / 0.5629 GB, free: 1.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.366, allocations: 318.8 kB / 0.5632 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.803e-05/0.3661, allocations: 11.94 kB / 0.5632 GB, free: 1.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.787e-05/0.3661, allocations: 17.91 kB / 0.5632 GB, free: 1.227 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.365e-05/0.3661, allocations: 33.73 kB / 0.5633 GB, free: 1.188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3661, allocations: 0 / 0.5633 GB, free: 1.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.972e-05/0.3662, allocations: 53.62 kB / 0.5633 GB, free: 1.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3662, allocations: 8.031 kB / 0.5633 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3662, allocations: 3.984 kB / 0.5633 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.3662, allocations: 0 / 0.5633 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.45e-05/0.3663, allocations: 7.984 kB / 0.5633 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3663, allocations: 0 / 0.5633 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.289e-05/0.3663, allocations: 11.89 kB / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-06/0.3663, allocations: 0 / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.124e-05/0.3664, allocations: 113.8 kB / 0.5635 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.18e-05/0.3664, allocations: 4 kB / 0.5635 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.3665, allocations: 8 kB / 0.5635 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3665, allocations: 4 kB / 0.5635 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3665, allocations: 0 / 0.5635 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3665, allocations: 3.938 kB / 0.5635 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003039/0.3668, allocations: 269.6 kB / 0.5637 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3668, allocations: 0 / 0.5637 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.367e-05/0.3668, allocations: 7.984 kB / 0.5637 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3668, allocations: 0 / 0.5637 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.3668, allocations: 3.938 kB / 0.5638 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3668, allocations: 0 / 0.5638 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.3668, allocations: 0 / 0.5638 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.367, allocations: 151.5 kB / 0.5639 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.125e-05/0.367, allocations: 8.016 kB / 0.5639 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.367, allocations: 7.875 kB / 0.5639 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.813e-05/0.3671, allocations: 7.984 kB / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.667e-05/0.3671, allocations: 0 / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.3671, allocations: 4 kB / 0.5639 GB, free: 444 kB / 398.1 MB Notification: Performance of sorting global known variables: time 7.093e-05/0.3672, allocations: 95.27 kB / 0.564 GB, free: 348 kB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3672, allocations: 4 kB / 0.564 GB, free: 344 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.3674, allocations: 8.219 kB / 0.564 GB, free: 336 kB / 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004769/0.3679, allocations: 0.6772 MB / 0.5647 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.263e-05/0.3679, allocations: 32.16 kB / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.368, allocations: 0 / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.886e-05/0.368, allocations: 8 kB / 0.5647 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.3682, allocations: 11.97 kB / 0.5647 GB, free: 15.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.3695, allocations: 1.286 MB / 0.566 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.827e-05/0.3696, allocations: 67.33 kB / 0.5661 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.14e-05/0.3696, allocations: 4 kB / 0.5661 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.911e-05/0.3696, allocations: 11.44 kB / 0.5661 GB, free: 14.11 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3696, allocations: 4.062 kB / 0.5661 GB, free: 14.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02887/0.3985, allocations: 2.086 MB / 0.5681 GB, free: 12.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.59, allocations: 6.094 kB / 0.5681 GB, free: 12.11 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.684794671833515]