Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001231/0.001231, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001303/0.001304, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 76.56 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1195, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003161/0.1227, allocations: 1.634 MB / 481.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1238, allocations: 0.5844 MB / 482.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.124, allocations: 3.938 kB / 482.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.1241, allocations: 15.81 kB / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.788e-05/0.1242, allocations: 11.88 kB / 482.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003545/0.1246, allocations: 91.55 kB / 482.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001682/0.1247, allocations: 111.7 kB / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.1249, allocations: 32.27 kB / 482.6 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.654e-05/0.125, allocations: 51.84 kB / 482.7 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.996e-05/0.1251, allocations: 35.78 kB / 482.7 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.1251, allocations: 8 kB / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.711e-05/0.1251, allocations: 11.94 kB / 482.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.252e-05/0.1251, allocations: 27.91 kB / 482.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.319e-05/0.1252, allocations: 39.78 kB / 482.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.1253, allocations: 83.64 kB / 482.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1254, allocations: 4 kB / 482.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1254, allocations: 0 / 482.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1254, allocations: 0 / 482.9 MB, free: 2.418 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006349/0.126, allocations: 407.2 kB / 483.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.1261, allocations: 8.031 kB / 483.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.942e-05/0.1261, allocations: 38.75 kB / 483.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.1262, allocations: 8.844 kB / 483.3 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.1264, allocations: 204 kB / 483.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.1264, allocations: 8.375 kB / 483.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.1264, allocations: 4.375 kB / 483.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.1267, allocations: 109.7 kB / 483.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.1267, allocations: 0 / 483.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.1268, allocations: 4 kB / 483.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.1268, allocations: 7.938 kB / 483.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001632/0.1269, allocations: 51.91 kB / 483.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006719/0.1276, allocations: 392.4 kB / 484.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003352/0.128, allocations: 102.5 kB / 484.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.1281, allocations: 36.91 kB / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.1281, allocations: 15.92 kB / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002779/0.1284, allocations: 91.36 kB / 484.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.1284, allocations: 0 / 484.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004669/0.1289, allocations: 149.4 kB / 484.5 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.129, allocations: 59.41 kB / 484.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.1291, allocations: 144.8 kB / 484.7 MB, free: 424 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1291, allocations: 29.64 kB / 484.7 MB, free: 388 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.1292, allocations: 104 kB / 484.8 MB, free: 280 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/0.1292, allocations: 11.81 kB / 484.8 MB, free: 268 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.83e-05/0.1293, allocations: 33.7 kB / 484.8 MB, free: 228 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1294, allocations: 322.8 kB / 485.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.1295, allocations: 31.98 kB / 485.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.1297, allocations: 49.69 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.1299, allocations: 81.61 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1299, allocations: 4 kB / 485.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002982/0.1302, allocations: 121.7 kB / 485.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.1303, allocations: 7.938 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-06/0.1303, allocations: 96 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1303, allocations: 3.938 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.1304, allocations: 15.98 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.1304, allocations: 4 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.1305, allocations: 19.97 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1306, allocations: 8 kB / 485.5 MB, free: 15.54 MB / 366.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: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001091/0.1307, allocations: 125.8 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.1307, allocations: 11.84 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.287e-05/0.1308, allocations: 12.72 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1308, allocations: 0 / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1308, allocations: 0 / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1308, allocations: 0 / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005889/0.1314, allocations: 402.4 kB / 486 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1314, allocations: 0 / 486 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.463e-05/0.1315, allocations: 11.94 kB / 486 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1315, allocations: 3.984 kB / 486 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.1315, allocations: 8 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1315, allocations: 0 / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1315, allocations: 4 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004984/0.132, allocations: 247.3 kB / 486.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.769e-05/0.1321, allocations: 85.08 kB / 486.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.1321, allocations: 4 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.1323, allocations: 15.97 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.337e-05/0.1324, allocations: 15.98 kB / 486.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.1324, allocations: 0 / 486.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.567e-05/0.1325, allocations: 118.6 kB / 486.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1325, allocations: 0 / 486.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002385/0.1327, allocations: 12 kB / 486.5 MB, free: 14.39 MB / 366.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007325/0.1335, allocations: 0.7904 MB / 487.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003102/0.1338, allocations: 79.89 kB / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1338, allocations: 0 / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.1339, allocations: 43.97 kB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.1343, allocations: 24.8 kB / 487.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.1368, allocations: 1.71 MB / 489.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.137, allocations: 0.6971 MB / 489.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.989e-05/0.1371, allocations: 8.547 kB / 489.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.397e-05/0.1372, allocations: 35.42 kB / 489.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1372, allocations: 0 / 489.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02065/0.1578, allocations: 2.561 MB / 492.5 MB, free: 8.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.312/7.47, allocations: 3.984 kB / 492.5 MB, free: 8.352 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_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_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches