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.001672/0.001672, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001419/0.001419, allocations: 194 kB / 18.12 MB, free: 5.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.406/1.406, allocations: 222.9 MB / 241.8 MB, free: 15.57 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.2199/0.2199, allocations: 44.17 MB / 336.1 MB, free: 3.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 71.89 kB / 407.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1134, allocations: 60.82 MB / 468.6 MB, free: 2.965 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002978/0.1165, allocations: 1.684 MB / 470.3 MB, free: 1.258 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008518/0.1173, allocations: 0.5494 MB / 470.9 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.1175, allocations: 0 / 470.9 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.1176, allocations: 11.86 kB / 470.9 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.258e-05/0.1177, allocations: 7.875 kB / 470.9 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.118, allocations: 83.41 kB / 471 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.1182, allocations: 107.7 kB / 471.1 MB, free: 0.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.1183, allocations: 28.27 kB / 471.1 MB, free: 484 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.676e-05/0.1184, allocations: 47.83 kB / 471.1 MB, free: 436 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.895e-05/0.1185, allocations: 39.78 kB / 471.2 MB, free: 396 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.1185, allocations: 4 kB / 471.2 MB, free: 392 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.582e-05/0.1185, allocations: 4 kB / 471.2 MB, free: 388 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.41e-05/0.1185, allocations: 19.86 kB / 471.2 MB, free: 368 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.261e-05/0.1186, allocations: 35.8 kB / 471.2 MB, free: 332 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001093/0.1187, allocations: 83.62 kB / 471.3 MB, free: 248 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1187, allocations: 4 kB / 471.3 MB, free: 244 kB / 382.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1187, allocations: 4 kB / 471.3 MB, free: 240 kB / 382.1 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.1187, allocations: 0 / 471.3 MB, free: 240 kB / 382.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.0006171/0.1194, allocations: 411.1 kB / 471.7 MB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1194, allocations: 8.031 kB / 471.7 MB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.746e-05/0.1194, allocations: 38.75 kB / 471.8 MB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.1195, allocations: 8.844 kB / 471.8 MB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/0.1197, allocations: 208.1 kB / 472 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.1197, allocations: 8.375 kB / 472 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.228e-05/0.1197, allocations: 12.28 kB / 472 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002606/0.12, allocations: 101.8 kB / 472.1 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.12, allocations: 3.938 kB / 472.1 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.12, allocations: 0 / 472.1 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.12, allocations: 4 kB / 472.1 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001523/0.1202, allocations: 51.97 kB / 472.2 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006347/0.1208, allocations: 388.5 kB / 472.5 MB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.1212, allocations: 102.5 kB / 472.6 MB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.1213, allocations: 40.91 kB / 472.7 MB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.1213, allocations: 11.88 kB / 472.7 MB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.1216, allocations: 95.34 kB / 472.8 MB, free: 14.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.1216, allocations: 0 / 472.8 MB, free: 14.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004333/0.122, allocations: 149.4 kB / 472.9 MB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.1221, allocations: 55.41 kB / 473 MB, free: 14.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.1222, allocations: 149.3 kB / 473.1 MB, free: 14.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.1222, allocations: 29.64 kB / 473.2 MB, free: 14.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.982e-05/0.1223, allocations: 104.1 kB / 473.3 MB, free: 14.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/0.1223, allocations: 19.72 kB / 473.3 MB, free: 14.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.172e-05/0.1224, allocations: 25.7 kB / 473.3 MB, free: 14.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.5e-05/0.1225, allocations: 322.8 kB / 473.6 MB, free: 13.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.1226, allocations: 31.98 kB / 473.7 MB, free: 13.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.1227, allocations: 53.69 kB / 473.7 MB, free: 13.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.1229, allocations: 73.61 kB / 473.8 MB, free: 13.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1229, allocations: 4 kB / 473.8 MB, free: 13.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002694/0.1232, allocations: 125.6 kB / 473.9 MB, free: 13.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.1232, allocations: 7.938 kB / 473.9 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1232, allocations: 0 / 473.9 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.1233, allocations: 0 / 473.9 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.1234, allocations: 15.98 kB / 473.9 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1234, allocations: 4.031 kB / 473.9 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.122e-05/0.1235, allocations: 20.06 kB / 473.9 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.1235, allocations: 8 kB / 474 MB, free: 13.36 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: 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.763e-05/0.1236, allocations: 125.1 kB / 474.1 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.962e-05/0.1236, allocations: 15.75 kB / 474.1 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.555e-05/0.1237, allocations: 12.72 kB / 474.1 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1237, allocations: 0 / 474.1 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1237, allocations: 0 / 474.1 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1237, allocations: 4 kB / 474.1 MB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004746/0.1242, allocations: 394.4 kB / 474.5 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.1242, allocations: 0 / 474.5 MB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.44e-05/0.1243, allocations: 11.94 kB / 474.5 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1243, allocations: 7.984 kB / 474.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.1243, allocations: 4 kB / 474.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1243, allocations: 0 / 474.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1243, allocations: 3.938 kB / 474.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004216/0.1247, allocations: 251.3 kB / 474.8 MB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.134e-05/0.1248, allocations: 81.02 kB / 474.8 MB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.1248, allocations: 4.031 kB / 474.9 MB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.125, allocations: 19.97 kB / 474.9 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.372e-05/0.125, allocations: 11.98 kB / 474.9 MB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.125, allocations: 4 kB / 474.9 MB, free: 12.33 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.082e-05/0.1251, allocations: 119.3 kB / 475 MB, free: 12.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1251, allocations: 0 / 475 MB, free: 12.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000234/0.1253, allocations: 23.84 kB / 475 MB, free: 12.19 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: 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.000649/0.126, allocations: 0.7835 MB / 475.8 MB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002674/0.1263, allocations: 83.88 kB / 475.9 MB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1263, allocations: 128 / 475.9 MB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.1264, allocations: 52.03 kB / 475.9 MB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.1267, allocations: 15.98 kB / 476 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.1287, allocations: 1.661 MB / 477.6 MB, free: 9.484 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.1289, allocations: 0.7004 MB / 478.3 MB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.143e-05/0.129, allocations: 8.562 kB / 478.3 MB, free: 8.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.59e-05/0.129, allocations: 27.42 kB / 478.4 MB, free: 8.719 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.129, allocations: 0 / 478.4 MB, free: 8.719 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01388/0.1429, allocations: 2.318 MB / 480.7 MB, free: 6.48 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.1432, allocations: 196.8 kB / 480.9 MB, free: 6.223 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/1.892, allocations: 0 / 480.9 MB, free: 6.223 MB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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