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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 118.4 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 183 kB / 18.72 MB, free: 4.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2151/0.2151, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3297, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001912/0.3316, allocations: 0.811 MB / 0.5192 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000203/0.3318, allocations: 50.16 kB / 0.5193 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.786e-05/0.3319, allocations: 5.188 kB / 0.5193 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.332, allocations: 5.297 kB / 0.5193 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.285e-05/0.332, allocations: 4.969 kB / 0.5193 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001152/0.3321, allocations: 21 kB / 0.5193 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.3322, allocations: 36.56 kB / 0.5193 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.3324, allocations: 16.3 kB / 0.5193 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.3324, allocations: 12.78 kB / 0.5194 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.345e-05/0.3324, allocations: 25.8 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.516e-05/0.3324, allocations: 4.031 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.088e-05/0.3324, allocations: 3.031 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.909e-05/0.3325, allocations: 2.75 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.272e-05/0.3325, allocations: 24.06 kB / 0.5194 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.3326, allocations: 33.31 kB / 0.5194 GB, free: 2.641 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3326, allocations: 2 kB / 0.5194 GB, free: 2.641 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3326, allocations: 0 / 0.5194 GB, free: 2.641 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.3326, allocations: 3.938 kB / 0.5194 GB, free: 2.637 MB / 382.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.0003622/0.333, allocations: 354.7 kB / 0.5198 GB, free: 2.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.333, allocations: 9.031 kB / 0.5198 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.944e-05/0.333, allocations: 33.36 kB / 0.5198 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.758e-05/0.3331, allocations: 9.312 kB / 0.5198 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.3332, allocations: 188.2 kB / 0.52 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.3333, allocations: 1.625 kB / 0.52 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.3333, allocations: 12.06 kB / 0.52 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.3334, allocations: 44.98 kB / 0.5201 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3334, allocations: 3.938 kB / 0.5201 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.3334, allocations: 10.73 kB / 0.5201 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.3334, allocations: 0 / 0.5201 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.153e-05/0.3335, allocations: 13.98 kB / 0.5201 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004444/0.3339, allocations: 288.7 kB / 0.5204 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.04e-05/0.334, allocations: 21.36 kB / 0.5204 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.821e-05/0.334, allocations: 11.78 kB / 0.5204 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.334, allocations: 4 kB / 0.5204 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.354e-05/0.3341, allocations: 49.3 kB / 0.5205 GB, free: 1.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.3341, allocations: 1.031 kB / 0.5205 GB, free: 1.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001367/0.3342, allocations: 57.59 kB / 0.5205 GB, free: 1.523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.3342, allocations: 53.23 kB / 0.5206 GB, free: 1.461 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.101e-05/0.3343, allocations: 120.9 kB / 0.5207 GB, free: 1.352 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.466e-06/0.3343, allocations: 26.5 kB / 0.5207 GB, free: 1.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.207e-05/0.3343, allocations: 92.53 kB / 0.5208 GB, free: 1.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.194e-05/0.3343, allocations: 9.297 kB / 0.5208 GB, free: 1.223 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.764e-05/0.3344, allocations: 19.36 kB / 0.5208 GB, free: 1.203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.878e-05/0.3344, allocations: 322.3 kB / 0.5211 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.699e-05/0.3344, allocations: 7.375 kB / 0.5211 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.297e-05/0.3345, allocations: 20.8 kB / 0.5212 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.883e-05/0.3345, allocations: 31.03 kB / 0.5212 GB, free: 0.832 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3345, allocations: 0 / 0.5212 GB, free: 0.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.928e-05/0.3346, allocations: 55.7 kB / 0.5212 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3346, allocations: 6.203 kB / 0.5212 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3346, allocations: 0 / 0.5212 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3346, allocations: 1 kB / 0.5212 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.197e-05/0.3346, allocations: 8.609 kB / 0.5213 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3346, allocations: 0 / 0.5213 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.935e-05/0.3347, allocations: 11.28 kB / 0.5213 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.3347, allocations: 2.047 kB / 0.5213 GB, free: 0.7773 MB / 382.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 5.32e-05/0.3347, allocations: 113.5 kB / 0.5214 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.116e-05/0.3347, allocations: 6.828 kB / 0.5214 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.334e-05/0.3348, allocations: 9.312 kB / 0.5214 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3348, allocations: 1.469 kB / 0.5214 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.3348, allocations: 0 / 0.5214 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3348, allocations: 5.906 kB / 0.5214 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.335, allocations: 298.8 kB / 0.5217 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.335, allocations: 0.75 kB / 0.5217 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.864e-05/0.335, allocations: 6.438 kB / 0.5217 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.335, allocations: 1.078 kB / 0.5217 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.335, allocations: 5.469 kB / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.335, allocations: 0 / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.335, allocations: 0 / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.3351, allocations: 153.4 kB / 0.5218 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.131e-05/0.3352, allocations: 79.22 kB / 0.5219 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.3352, allocations: 9.062 kB / 0.5219 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.381e-05/0.3352, allocations: 6.594 kB / 0.5219 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.156e-05/0.3353, allocations: 2.766 kB / 0.5219 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-06/0.3353, allocations: 1.188 kB / 0.5219 GB, free: 68 kB / 382.1 MB Notification: Performance of sorting global known variables: time 8.251e-05/0.3354, allocations: 95.8 kB / 0.522 GB, free: 15.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3354, allocations: 0 / 0.522 GB, free: 15.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002171/0.3356, allocations: 10.39 kB / 0.522 GB, free: 15.98 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.0005137/0.3361, allocations: 0.6891 MB / 0.5227 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.208e-05/0.3362, allocations: 20.23 kB / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3362, allocations: 1.156 kB / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.843e-05/0.3362, allocations: 6.125 kB / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.3365, allocations: 13.25 kB / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.3379, allocations: 1.287 MB / 0.524 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/0.3382, allocations: 0.6913 MB / 0.5247 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.526e-05/0.3383, allocations: 8.484 kB / 0.5247 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.733e-05/0.3383, allocations: 19.33 kB / 0.5247 GB, free: 13.34 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3383, allocations: 0 / 0.5247 GB, free: 13.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.3632, allocations: 1.571 MB / 0.5262 GB, free: 12.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.684/8.047, allocations: 9.5 kB / 0.5262 GB, free: 12.94 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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.002 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/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) Reference file matches