Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",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.001136/0.001136, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001183/0.001183, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.353/1.353, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2075/0.2075, allocations: 44.18 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 67.23 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.1002, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002844/0.1031, allocations: 1.616 MB / 471 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008647/0.1039, allocations: 0.5494 MB / 471.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.119e-05/0.104, allocations: 0 / 471.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.1042, allocations: 15.86 kB / 471.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.827e-05/0.1042, allocations: 23.8 kB / 471.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.1045, allocations: 87.2 kB / 471.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001486/0.1047, allocations: 119.7 kB / 471.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.1048, allocations: 32.25 kB / 471.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.928e-05/0.1049, allocations: 43.84 kB / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.07e-05/0.105, allocations: 35.78 kB / 471.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.105, allocations: 12 kB / 471.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.601e-05/0.105, allocations: 8 kB / 471.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.928e-05/0.1051, allocations: 27.91 kB / 471.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.159e-05/0.1051, allocations: 39.73 kB / 472 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.1053, allocations: 91.62 kB / 472 MB, free: 11.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.1053, allocations: 0 / 472 MB, free: 11.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1053, allocations: 0 / 472 MB, free: 11.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1053, allocations: 0 / 472 MB, free: 11.58 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.0006087/0.1059, allocations: 422 kB / 472.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.1059, allocations: 8.031 kB / 472.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.615e-05/0.106, allocations: 38.75 kB / 472.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.076e-05/0.106, allocations: 8.844 kB / 472.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.1062, allocations: 196.1 kB / 472.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.1062, allocations: 12.36 kB / 472.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.121e-05/0.1063, allocations: 8.312 kB / 472.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002704/0.1065, allocations: 108.6 kB / 472.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.1066, allocations: 0 / 472.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.1066, allocations: 7.938 kB / 472.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.1066, allocations: 4 kB / 472.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001575/0.1068, allocations: 47.97 kB / 472.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006277/0.1074, allocations: 392.4 kB / 473.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.1077, allocations: 102.5 kB / 473.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.1079, allocations: 32.89 kB / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.1079, allocations: 0 / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.1082, allocations: 111.2 kB / 473.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.1082, allocations: 0 / 473.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.000439/0.1086, allocations: 141.5 kB / 473.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.1087, allocations: 59.39 kB / 473.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.1088, allocations: 149.8 kB / 473.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.1088, allocations: 25.7 kB / 473.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.986e-05/0.1089, allocations: 104 kB / 474 MB, free: 9.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.1089, allocations: 11.81 kB / 474 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-05/0.109, allocations: 33.64 kB / 474 MB, free: 9.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.1091, allocations: 322.8 kB / 474.3 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.1092, allocations: 35.98 kB / 474.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.1093, allocations: 49.69 kB / 474.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.1096, allocations: 77.61 kB / 474.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1096, allocations: 0 / 474.5 MB, free: 8.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002969/0.1099, allocations: 117.7 kB / 474.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.1099, allocations: 16.06 kB / 474.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.1099, allocations: 3.938 kB / 474.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.1099, allocations: 0 / 474.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.959e-05/0.11, allocations: 15.98 kB / 474.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.88e-06/0.11, allocations: 0 / 474.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.601e-05/0.1101, allocations: 23.97 kB / 474.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.1102, allocations: 3.984 kB / 474.7 MB, free: 8.707 MB / 350.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 8.771e-05/0.1102, allocations: 125.8 kB / 474.8 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.191e-05/0.1103, allocations: 15.83 kB / 474.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.154e-05/0.1103, allocations: 12.66 kB / 474.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1103, allocations: 4 kB / 474.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1103, allocations: 0 / 474.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1103, allocations: 0 / 474.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004926/0.1108, allocations: 398.7 kB / 475.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1108, allocations: 0 / 475.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.504e-05/0.1109, allocations: 16 kB / 475.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1109, allocations: 0 / 475.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.111, allocations: 7.984 kB / 475.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.111, allocations: 3.938 kB / 475.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.111, allocations: 0 / 475.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004371/0.1114, allocations: 251.2 kB / 475.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.94e-05/0.1115, allocations: 85.05 kB / 475.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.1115, allocations: 0 / 475.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.1116, allocations: 24.03 kB / 475.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.1117, allocations: 15.98 kB / 475.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.042e-06/0.1117, allocations: 0 / 475.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.199e-05/0.1118, allocations: 116.8 kB / 475.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1118, allocations: 0 / 475.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.112, allocations: 15.94 kB / 475.7 MB, free: 7.539 MB / 350.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.0006787/0.1127, allocations: 0.7865 MB / 476.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002887/0.113, allocations: 83.95 kB / 476.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.113, allocations: 0 / 476.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.1132, allocations: 43.97 kB / 476.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.1135, allocations: 20.12 kB / 476.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.1154, allocations: 1.648 MB / 478.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.1157, allocations: 0.7002 MB / 479 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.534e-05/0.1157, allocations: 8.562 kB / 479 MB, free: 4.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.962e-05/0.1158, allocations: 31.42 kB / 479.1 MB, free: 4.082 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1158, allocations: 0 / 479.1 MB, free: 4.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01973/0.1355, allocations: 2.593 MB / 481.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.561/7.697, allocations: 22.52 kB / 481.7 MB, free: 1.531 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches