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.001479/0.001479, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001298/0.001298, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.422/1.422, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2348/0.2348, allocations: 44.17 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002617/0.002617, allocations: 71.88 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3866/0.3892, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001958/0.3912, allocations: 0.8121 MB / 0.5192 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002128/0.3915, allocations: 50.62 kB / 0.5193 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.051e-05/0.3915, allocations: 1.031 kB / 0.5193 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.3917, allocations: 6.75 kB / 0.5193 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.887e-05/0.3917, allocations: 4.844 kB / 0.5193 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001158/0.3918, allocations: 18.95 kB / 0.5193 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.3919, allocations: 37.52 kB / 0.5193 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.3921, allocations: 19.5 kB / 0.5193 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.211e-05/0.3921, allocations: 16.72 kB / 0.5194 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.699e-05/0.3921, allocations: 19.52 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.3922, allocations: 2.562 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.3922, allocations: 3.062 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.916e-05/0.3922, allocations: 6.094 kB / 0.5194 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.956e-05/0.3922, allocations: 18.95 kB / 0.5194 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.3924, allocations: 36.2 kB / 0.5194 GB, free: 2.629 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3924, allocations: 0 / 0.5194 GB, free: 2.629 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.547e-05/0.3924, allocations: 1.703 kB / 0.5194 GB, free: 2.629 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.3924, allocations: 3.938 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.000496/0.3929, allocations: 360 kB / 0.5198 GB, free: 2.246 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.393, allocations: 9.5 kB / 0.5198 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.204e-05/0.393, allocations: 37.72 kB / 0.5198 GB, free: 2.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.3931, allocations: 7.891 kB / 0.5198 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.3933, allocations: 180.9 kB / 0.52 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.3933, allocations: 5.438 kB / 0.52 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.35e-05/0.3933, allocations: 3.781 kB / 0.52 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.3935, allocations: 49.56 kB / 0.5201 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.3935, allocations: 7.938 kB / 0.5201 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.3935, allocations: 1.125 kB / 0.5201 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.3935, allocations: 1.125 kB / 0.5201 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.887e-05/0.3936, allocations: 17.84 kB / 0.5201 GB, free: 1.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005624/0.3942, allocations: 289.9 kB / 0.5204 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.89e-05/0.3942, allocations: 24.22 kB / 0.5204 GB, free: 1.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.796e-05/0.3943, allocations: 15.42 kB / 0.5204 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.3943, allocations: 1.828 kB / 0.5204 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.323e-05/0.3944, allocations: 52.92 kB / 0.5205 GB, free: 1.551 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.362e-06/0.3944, allocations: 0 / 0.5205 GB, free: 1.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001699/0.3946, allocations: 51.03 kB / 0.5205 GB, free: 1.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.3946, allocations: 57.33 kB / 0.5206 GB, free: 1.445 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.88e-05/0.3947, allocations: 116.2 kB / 0.5207 GB, free: 1.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.3947, allocations: 26.7 kB / 0.5207 GB, free: 1.309 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.184e-05/0.3948, allocations: 91.89 kB / 0.5208 GB, free: 1.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.559e-05/0.3948, allocations: 10.09 kB / 0.5208 GB, free: 1.211 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.954e-05/0.3948, allocations: 15.23 kB / 0.5208 GB, free: 1.195 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.572e-05/0.3949, allocations: 322 kB / 0.5211 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.006e-05/0.3949, allocations: 3.328 kB / 0.5211 GB, free: 0.875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.693e-05/0.3949, allocations: 21 kB / 0.5211 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4e-05/0.395, allocations: 26.36 kB / 0.5212 GB, free: 0.832 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.395, allocations: 5.062 kB / 0.5212 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.074e-05/0.3951, allocations: 55.52 kB / 0.5212 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3951, allocations: 10.03 kB / 0.5212 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3951, allocations: 0.7031 kB / 0.5212 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.3951, allocations: 1.156 kB / 0.5212 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.298e-05/0.3952, allocations: 7.5 kB / 0.5212 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.3952, allocations: 5.906 kB / 0.5213 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.524e-05/0.3952, allocations: 10.28 kB / 0.5213 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-06/0.3952, allocations: 5.094 kB / 0.5213 GB, free: 0.7617 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 7.58e-05/0.3953, allocations: 114.2 kB / 0.5214 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.277e-05/0.3953, allocations: 5.797 kB / 0.5214 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.813e-05/0.3954, allocations: 6.203 kB / 0.5214 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.3954, allocations: 1.031 kB / 0.5214 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3954, allocations: 0 / 0.5214 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3954, allocations: 5.797 kB / 0.5214 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002598/0.3957, allocations: 295.6 kB / 0.5217 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3957, allocations: 7.938 kB / 0.5217 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.995e-05/0.3957, allocations: 6.781 kB / 0.5217 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3957, allocations: 1.062 kB / 0.5217 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.3957, allocations: 3.938 kB / 0.5217 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3957, allocations: 1.875 kB / 0.5217 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3958, allocations: 0 / 0.5217 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.3959, allocations: 150 kB / 0.5218 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.243e-05/0.3959, allocations: 78.78 kB / 0.5219 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.396, allocations: 5.828 kB / 0.5219 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.002e-05/0.396, allocations: 5.844 kB / 0.5219 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.3961, allocations: 6.219 kB / 0.5219 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.3961, allocations: 1.156 kB / 0.5219 GB, free: 56 kB / 382.1 MB Notification: Performance of sorting global known variables: time 9.78e-05/0.3962, allocations: 95.89 kB / 0.522 GB, free: 15.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3962, allocations: 0 / 0.522 GB, free: 15.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002554/0.3965, allocations: 13.25 kB / 0.522 GB, free: 15.96 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.0004951/0.397, allocations: 0.6741 MB / 0.5227 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.88e-05/0.3971, allocations: 25.25 kB / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3971, allocations: 288 / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.14e-05/0.3971, allocations: 7.266 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.0002688/0.3974, allocations: 15.16 kB / 0.5227 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.3988, 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.0004313/0.3992, allocations: 0.6921 MB / 0.5247 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.642e-05/0.3993, allocations: 6.156 kB / 0.5247 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.855e-05/0.3993, allocations: 15.77 kB / 0.5247 GB, free: 13.33 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3993, allocations: 0 / 0.5247 GB, free: 13.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.426, allocations: 1.578 MB / 0.5262 GB, free: 12.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.775/8.201, allocations: 5.141 kB / 0.5262 GB, free: 12.92 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