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.001474/0.001474, allocations: 112 kB / 17.78 MB, free: 5.281 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.001339/0.001339, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2031/0.2031, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 59.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3432, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002058/0.3453, allocations: 0.8047 MB / 0.5192 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002229/0.3456, allocations: 45.33 kB / 0.5192 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.491e-05/0.3457, allocations: 1.219 kB / 0.5192 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.3458, allocations: 8.734 kB / 0.5193 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.643e-05/0.3459, allocations: 10.12 kB / 0.5193 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000125/0.346, allocations: 27.27 kB / 0.5193 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.3461, allocations: 36.16 kB / 0.5193 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.3463, allocations: 16.23 kB / 0.5193 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.028e-05/0.3463, allocations: 15.23 kB / 0.5194 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.046e-05/0.3463, allocations: 18.66 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.3464, allocations: 6.125 kB / 0.5194 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.099e-05/0.3464, allocations: 3.938 kB / 0.5194 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.001e-05/0.3464, allocations: 5 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.791e-05/0.3465, allocations: 26.61 kB / 0.5194 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.3466, allocations: 33.58 kB / 0.5194 GB, free: 2.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3466, allocations: 0.7812 kB / 0.5194 GB, free: 2.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3466, allocations: 0 / 0.5194 GB, free: 2.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3466, allocations: 5.031 kB / 0.5194 GB, free: 2.625 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.0003989/0.347, allocations: 352 kB / 0.5198 GB, free: 2.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3471, allocations: 9.594 kB / 0.5198 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.3471, allocations: 37.19 kB / 0.5198 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.229e-05/0.3472, allocations: 9.281 kB / 0.5198 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.3474, allocations: 187.7 kB / 0.52 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.3474, allocations: 5.688 kB / 0.52 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.3474, allocations: 4.188 kB / 0.52 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.3476, allocations: 53.66 kB / 0.5201 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3476, allocations: 3.938 kB / 0.5201 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.3476, allocations: 1 kB / 0.5201 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.3476, allocations: 1.312 kB / 0.5201 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.199e-05/0.3477, allocations: 14.11 kB / 0.5201 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004998/0.3482, allocations: 292.8 kB / 0.5204 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.241e-05/0.3483, allocations: 20.59 kB / 0.5204 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.168e-05/0.3483, allocations: 11.72 kB / 0.5204 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.3483, allocations: 1.156 kB / 0.5204 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000101/0.3484, allocations: 50.25 kB / 0.5205 GB, free: 1.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3484, allocations: 7.938 kB / 0.5205 GB, free: 1.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001608/0.3486, allocations: 51.2 kB / 0.5205 GB, free: 1.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.3486, allocations: 51.41 kB / 0.5206 GB, free: 1.453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.664e-05/0.3487, allocations: 121.4 kB / 0.5207 GB, free: 1.344 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.947e-06/0.3487, allocations: 25.7 kB / 0.5207 GB, free: 1.312 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.547e-05/0.3488, allocations: 88.12 kB / 0.5208 GB, free: 1.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.3488, allocations: 9.828 kB / 0.5208 GB, free: 1.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.3488, allocations: 15.69 kB / 0.5208 GB, free: 1.203 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.096e-05/0.3489, allocations: 325.3 kB / 0.5211 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.829e-05/0.3489, allocations: 4.234 kB / 0.5211 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.575e-05/0.3489, allocations: 24.89 kB / 0.5211 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.77e-05/0.349, allocations: 26.8 kB / 0.5212 GB, free: 0.832 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.349, allocations: 0 / 0.5212 GB, free: 0.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.95e-05/0.3491, allocations: 60.42 kB / 0.5212 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3491, allocations: 5.281 kB / 0.5212 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3491, allocations: 6.094 kB / 0.5212 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.3491, allocations: 0 / 0.5212 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.981e-05/0.3492, allocations: 8.578 kB / 0.5212 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.3492, allocations: 0 / 0.5212 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.234e-05/0.3492, allocations: 7.047 kB / 0.5213 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-06/0.3492, allocations: 1.406 kB / 0.5213 GB, free: 0.7734 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 6.596e-05/0.3493, allocations: 112.9 kB / 0.5214 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.3493, allocations: 7.969 kB / 0.5214 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.415e-05/0.3493, allocations: 5.516 kB / 0.5214 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3494, allocations: 4.656 kB / 0.5214 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3494, allocations: 1.062 kB / 0.5214 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3494, allocations: 4.641 kB / 0.5214 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.3496, allocations: 299.8 kB / 0.5217 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.3497, allocations: 0 / 0.5217 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.387e-05/0.3497, allocations: 6.672 kB / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3497, allocations: 1.672 kB / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.3497, allocations: 7.938 kB / 0.5217 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.3497, allocations: 1.094 kB / 0.5217 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3497, allocations: 4 kB / 0.5217 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.3499, allocations: 153.7 kB / 0.5218 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.526e-05/0.3499, allocations: 79.23 kB / 0.5219 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.3499, allocations: 6.266 kB / 0.5219 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.899e-05/0.35, allocations: 2.281 kB / 0.5219 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.82e-05/0.35, allocations: 1.75 kB / 0.5219 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.3501, allocations: 1.75 kB / 0.5219 GB, free: 64 kB / 382.1 MB Notification: Performance of sorting global known variables: time 7.355e-05/0.3501, allocations: 99.08 kB / 0.522 GB, free: 15.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3501, allocations: 0 / 0.522 GB, free: 15.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002323/0.3504, allocations: 13.52 kB / 0.522 GB, free: 15.97 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.0004342/0.3508, allocations: 0.674 MB / 0.5227 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.366e-05/0.3509, allocations: 25.61 kB / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3509, allocations: 4.125 kB / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.949e-05/0.351, allocations: 7.406 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.0002776/0.3512, allocations: 10 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.00124/0.3525, allocations: 1.294 MB / 0.524 GB, free: 14.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.3528, allocations: 0.6882 MB / 0.5247 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.076e-05/0.3528, allocations: 6.672 kB / 0.5247 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.3529, allocations: 15.27 kB / 0.5247 GB, free: 13.33 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3529, allocations: 5.094 kB / 0.5247 GB, free: 13.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.3745, allocations: 1.577 MB / 0.5262 GB, free: 12.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.859/8.234, allocations: 6.188 kB / 0.5262 GB, free: 12.93 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