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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00132/0.001321, allocations: 116.4 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001428/0.001428, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2454/0.2454, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4369/0.4384, allocations: 62.43 MB / 0.5305 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002502/0.441, allocations: 0.8199 MB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002476/0.4412, allocations: 49.56 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.161e-05/0.4413, allocations: 4 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.4415, allocations: 5.844 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.932e-05/0.4415, allocations: 3.938 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001271/0.4416, allocations: 19.83 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001304/0.4418, allocations: 42.41 kB / 0.5314 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.4419, allocations: 19 kB / 0.5314 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.578e-05/0.4419, allocations: 16.45 kB / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.005e-05/0.442, allocations: 11.09 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.442, allocations: 2.969 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.005e-05/0.442, allocations: 6.844 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.611e-05/0.4421, allocations: 9.641 kB / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.777e-05/0.4421, allocations: 14.75 kB / 0.5315 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.4422, allocations: 42 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.4423, allocations: 7.984 kB / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4423, allocations: 0 / 0.5315 GB, free: 12.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.4423, allocations: 0 / 0.5315 GB, free: 12.64 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.0005112/0.4428, allocations: 349.3 kB / 0.5319 GB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.4428, allocations: 9.625 kB / 0.5319 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.327e-05/0.4429, allocations: 44.77 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.331e-05/0.4429, allocations: 3.031 kB / 0.5319 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.4432, allocations: 175.1 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.4433, allocations: 5.75 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.011e-05/0.4433, allocations: 3.219 kB / 0.5321 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.4435, allocations: 53.47 kB / 0.5322 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.4435, allocations: 3.938 kB / 0.5322 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.4435, allocations: 1.188 kB / 0.5322 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.4435, allocations: 1.188 kB / 0.5322 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.372e-05/0.4436, allocations: 19.64 kB / 0.5322 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006488/0.4442, allocations: 293.8 kB / 0.5325 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.326e-05/0.4443, allocations: 27.95 kB / 0.5325 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.888e-05/0.4443, allocations: 6.828 kB / 0.5325 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.666e-06/0.4443, allocations: 1.844 kB / 0.5325 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001055/0.4445, allocations: 52.75 kB / 0.5325 GB, free: 11.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.723e-06/0.4445, allocations: 0 / 0.5325 GB, free: 11.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001838/0.4447, allocations: 55.95 kB / 0.5326 GB, free: 11.49 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.4447, allocations: 51.41 kB / 0.5326 GB, free: 11.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001106/0.4448, allocations: 120.1 kB / 0.5328 GB, free: 11.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.4449, allocations: 25.7 kB / 0.5328 GB, free: 11.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.267e-05/0.4449, allocations: 95.67 kB / 0.5329 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.445, allocations: 7.953 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.445, allocations: 17.34 kB / 0.5329 GB, free: 11.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.4452, allocations: 324.7 kB / 0.5332 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.377e-05/0.4452, allocations: 8.5 kB / 0.5332 GB, free: 10.83 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.223e-05/0.4452, allocations: 17.12 kB / 0.5332 GB, free: 10.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.671e-05/0.4453, allocations: 30.84 kB / 0.5333 GB, free: 10.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4453, allocations: 0 / 0.5333 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.584e-05/0.4454, allocations: 58.03 kB / 0.5333 GB, free: 10.74 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.4454, allocations: 6.375 kB / 0.5333 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4454, allocations: 2.219 kB / 0.5333 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.4454, allocations: 0 / 0.5333 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.993e-05/0.4455, allocations: 12.3 kB / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4455, allocations: 0 / 0.5333 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.387e-05/0.4455, allocations: 9.828 kB / 0.5334 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.4456, allocations: 2.188 kB / 0.5334 GB, free: 10.72 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 0.0001072/0.4457, allocations: 117.1 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-06/0.4457, allocations: 7.188 kB / 0.5335 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.4457, allocations: 3.906 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4457, allocations: 0 / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4457, allocations: 0 / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.4458, allocations: 11.92 kB / 0.5335 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.4461, allocations: 301 kB / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.4461, allocations: 0 / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.054e-05/0.4462, allocations: 1.969 kB / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.4462, allocations: 1.219 kB / 0.5338 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.4462, allocations: 11.92 kB / 0.5338 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.4462, allocations: 1.625 kB / 0.5338 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4462, allocations: 0 / 0.5338 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.4464, allocations: 144.2 kB / 0.5339 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.777e-05/0.4464, allocations: 84.25 kB / 0.534 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.4465, allocations: 3.938 kB / 0.534 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.821e-05/0.4465, allocations: 384 / 0.534 GB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.65e-05/0.4466, allocations: 8.984 kB / 0.534 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.4466, allocations: 8 kB / 0.534 GB, free: 9.984 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.579e-05/0.4466, allocations: 93.47 kB / 0.5341 GB, free: 9.898 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4467, allocations: 0 / 0.5341 GB, free: 9.898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002291/0.4469, allocations: 14.7 kB / 0.5341 GB, free: 9.891 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.0005402/0.4474, allocations: 0.6704 MB / 0.5348 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001005/0.4476, allocations: 30.39 kB / 0.5348 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4476, allocations: 0 / 0.5348 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.027e-05/0.4476, allocations: 13.44 kB / 0.5348 GB, free: 9.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.4479, allocations: 9.484 kB / 0.5348 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.4492, allocations: 1.276 MB / 0.5361 GB, free: 7.941 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.4495, allocations: 0.6897 MB / 0.5368 GB, free: 7.234 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.745e-05/0.4495, allocations: 2.625 kB / 0.5368 GB, free: 7.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.4495, allocations: 18.81 kB / 0.5368 GB, free: 7.219 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4496, allocations: 0 / 0.5368 GB, free: 7.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01924/0.4688, allocations: 1.538 MB / 0.5383 GB, free: 6.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/8.293, allocations: 11.31 kB / 0.5383 GB, free: 6.355 MB / 398.1 MB (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.002 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches