Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001411/0.001411, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001587/0.001587, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.231/0.231, allocations: 44.94 MB / 358.8 MB, free: 6.055 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 63.91 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3154, allocations: 65.48 MB / 0.557 GB, free: 7.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002773/0.3182, allocations: 0.8091 MB / 0.5577 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002938/0.3185, allocations: 47.73 kB / 0.5578 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.337e-05/0.3186, allocations: 0 / 0.5578 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001636/0.3187, allocations: 3.938 kB / 0.5578 GB, free: 6.562 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.602e-05/0.3187, allocations: 3.938 kB / 0.5578 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.3189, allocations: 19.98 kB / 0.5578 GB, free: 6.539 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001436/0.319, allocations: 43.84 kB / 0.5579 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.3192, allocations: 13.83 kB / 0.5579 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.647e-05/0.3192, allocations: 15.92 kB / 0.5579 GB, free: 6.469 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.037e-05/0.3193, allocations: 11.94 kB / 0.5579 GB, free: 6.457 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.3193, allocations: 4 kB / 0.5579 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.236e-05/0.3193, allocations: 0 / 0.5579 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.507e-05/0.3193, allocations: 15.97 kB / 0.5579 GB, free: 6.438 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.523e-05/0.3194, allocations: 15.88 kB / 0.5579 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.3195, allocations: 31.84 kB / 0.558 GB, free: 6.391 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3195, allocations: 0 / 0.558 GB, free: 6.391 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3195, allocations: 0 / 0.558 GB, free: 6.391 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3195, allocations: 0 / 0.558 GB, free: 6.391 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.0004961/0.32, allocations: 291 kB / 0.5582 GB, free: 6.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.3201, allocations: 16.02 kB / 0.5583 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.324e-05/0.3201, allocations: 30.75 kB / 0.5583 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.258e-05/0.3201, allocations: 8.891 kB / 0.5583 GB, free: 6.008 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002413/0.3204, allocations: 118.5 kB / 0.5584 GB, free: 5.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.3204, allocations: 4.312 kB / 0.5584 GB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.3204, allocations: 8.375 kB / 0.5584 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.3205, allocations: 46.25 kB / 0.5585 GB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3205, allocations: 3.938 kB / 0.5585 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.3206, allocations: 4 kB / 0.5585 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3206, allocations: 4 kB / 0.5585 GB, free: 5.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.892e-05/0.3206, allocations: 19.92 kB / 0.5585 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005376/0.3211, allocations: 247.8 kB / 0.5587 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.613e-05/0.3212, allocations: 30.52 kB / 0.5588 GB, free: 5.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2e-05/0.3212, allocations: 4.859 kB / 0.5588 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.043e-06/0.3212, allocations: 0 / 0.5588 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/0.3213, allocations: 59.42 kB / 0.5588 GB, free: 5.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.3213, allocations: 3.938 kB / 0.5588 GB, free: 5.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001578/0.3215, allocations: 57.81 kB / 0.5589 GB, free: 5.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.3215, allocations: 59.34 kB / 0.5589 GB, free: 5.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.3217, allocations: 117.8 kB / 0.559 GB, free: 5.109 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.3217, allocations: 29.7 kB / 0.5591 GB, free: 5.074 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/0.3218, allocations: 92.16 kB / 0.5592 GB, free: 4.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.3218, allocations: 7.953 kB / 0.5592 GB, free: 4.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.523e-05/0.3218, allocations: 21.7 kB / 0.5592 GB, free: 4.945 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.322, allocations: 314.8 kB / 0.5595 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.06e-05/0.322, allocations: 8 kB / 0.5595 GB, free: 4.621 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.974e-05/0.322, allocations: 17.7 kB / 0.5595 GB, free: 4.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.519e-05/0.3221, allocations: 25.72 kB / 0.5595 GB, free: 4.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3221, allocations: 4 kB / 0.5595 GB, free: 4.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.756e-05/0.3222, allocations: 53.62 kB / 0.5596 GB, free: 4.504 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.3222, allocations: 8 kB / 0.5596 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3222, allocations: 0 / 0.5596 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.562e-05/0.3222, allocations: 0 / 0.5596 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.427e-05/0.3223, allocations: 4 kB / 0.5596 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.3223, allocations: 0 / 0.5596 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.234e-05/0.3223, allocations: 15.83 kB / 0.5596 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-06/0.3223, allocations: 0 / 0.5596 GB, free: 4.477 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.862e-05/0.3224, allocations: 113.8 kB / 0.5597 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.315e-05/0.3224, allocations: 8.016 kB / 0.5597 GB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.446e-05/0.3225, allocations: 15.94 kB / 0.5598 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3225, allocations: 0 / 0.5598 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3225, allocations: 0 / 0.5598 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3225, allocations: 3.938 kB / 0.5598 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003408/0.3228, allocations: 265.7 kB / 0.56 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3228, allocations: 0 / 0.56 GB, free: 4.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.868e-05/0.3228, allocations: 3.938 kB / 0.56 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3228, allocations: 0 / 0.56 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.3229, allocations: 7.938 kB / 0.56 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.3229, allocations: 4.375 kB / 0.56 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3229, allocations: 0 / 0.56 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001751/0.323, allocations: 147.5 kB / 0.5602 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.542e-05/0.323, allocations: 7.984 kB / 0.5602 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.3231, allocations: 7.875 kB / 0.5602 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.331e-05/0.3231, allocations: 0 / 0.5602 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.3232, allocations: 4 kB / 0.5602 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.3232, allocations: 4 kB / 0.5602 GB, free: 3.812 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.053e-05/0.3232, allocations: 91.27 kB / 0.5603 GB, free: 3.723 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3232, allocations: 3.938 kB / 0.5603 GB, free: 3.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.3235, allocations: 7.938 kB / 0.5603 GB, free: 3.711 MB / 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.0005555/0.324, allocations: 0.6932 MB / 0.561 GB, free: 2.992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.116e-05/0.3241, allocations: 27.86 kB / 0.561 GB, free: 2.965 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3241, allocations: 0 / 0.561 GB, free: 2.965 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.196e-05/0.3241, allocations: 8 kB / 0.561 GB, free: 2.957 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.3244, allocations: 6.188 kB / 0.561 GB, free: 2.953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.3257, allocations: 1.286 MB / 0.5623 GB, free: 1.586 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.552e-05/0.3258, allocations: 67.34 kB / 0.5623 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.48e-05/0.3258, allocations: 12.36 kB / 0.5623 GB, free: 1.488 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.151e-05/0.3258, allocations: 11.44 kB / 0.5623 GB, free: 1.477 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3258, allocations: 0 / 0.5623 GB, free: 1.477 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.356, allocations: 2.075 MB / 0.5644 GB, free: 15.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.73, allocations: 6.922 kB / 0.5644 GB, free: 15.52 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.688693718984723]