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.001624/0.001624, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.001847/0.001847, allocations: 192 kB / 18.56 MB, free: 4.434 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.394/1.394, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.2049/0.2049, allocations: 44.17 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 67.64 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1069, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003099/0.1101, allocations: 1.605 MB / 471 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.1112, allocations: 0.565 MB / 471.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.1113, allocations: 3.938 kB / 471.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.1115, allocations: 7.875 kB / 471.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.259e-05/0.1116, allocations: 15.86 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003857/0.112, allocations: 83.81 kB / 471.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.1121, allocations: 111.7 kB / 471.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.1123, allocations: 40.23 kB / 471.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.495e-05/0.1124, allocations: 47.78 kB / 471.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.024e-05/0.1125, allocations: 43.77 kB / 471.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/0.1125, allocations: 8 kB / 471.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.835e-05/0.1125, allocations: 8 kB / 471.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.149e-05/0.1126, allocations: 23.91 kB / 471.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.675e-05/0.1126, allocations: 35.8 kB / 471.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001581/0.1128, allocations: 87.64 kB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1128, allocations: 4 kB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1128, allocations: 4 kB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.1128, allocations: 0 / 472 MB, free: 11.57 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.0006744/0.1135, allocations: 411.1 kB / 472.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.1136, allocations: 8.031 kB / 472.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.772e-05/0.1136, allocations: 42.73 kB / 472.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.808e-05/0.1137, allocations: 8.844 kB / 472.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.1139, allocations: 204 kB / 472.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.1139, allocations: 8.375 kB / 472.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.114, allocations: 8.375 kB / 472.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.1142, allocations: 102.6 kB / 472.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1143, allocations: 0 / 472.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.1143, allocations: 0 / 472.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1143, allocations: 3.984 kB / 472.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.1145, allocations: 55.97 kB / 472.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007368/0.1152, allocations: 392.4 kB / 473.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003599/0.1156, allocations: 106.4 kB / 473.4 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.1157, allocations: 36.92 kB / 473.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.1158, allocations: 0 / 473.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003201/0.1161, allocations: 95.36 kB / 473.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.1161, allocations: 3.938 kB / 473.5 MB, free: 9.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004917/0.1166, allocations: 149.6 kB / 473.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.1166, allocations: 55.39 kB / 473.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.1168, allocations: 149.8 kB / 473.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.1168, allocations: 29.7 kB / 473.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.24e-05/0.1169, allocations: 112 kB / 474 MB, free: 9.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.1169, allocations: 15.81 kB / 474 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.642e-05/0.117, allocations: 17.72 kB / 474 MB, free: 9.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1171, allocations: 326.8 kB / 474.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.1172, allocations: 31.97 kB / 474.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.1173, allocations: 53.69 kB / 474.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.1176, allocations: 73.62 kB / 474.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1176, allocations: 0 / 474.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002921/0.1179, allocations: 125.5 kB / 474.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1179, allocations: 11.94 kB / 474.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1179, allocations: 80 / 474.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1179, allocations: 0 / 474.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.118, allocations: 15.98 kB / 474.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.118, allocations: 3.984 kB / 474.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.1182, allocations: 35.98 kB / 474.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.872e-06/0.1182, allocations: 0 / 474.7 MB, free: 8.684 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 9.557e-05/0.1183, allocations: 120.9 kB / 474.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.148e-05/0.1183, allocations: 15.84 kB / 474.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.212e-05/0.1183, allocations: 16.7 kB / 474.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1184, allocations: 0 / 474.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1184, allocations: 4.281 kB / 474.8 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1184, allocations: 4 kB / 474.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005739/0.119, allocations: 390.4 kB / 475.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.119, allocations: 3.938 kB / 475.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.579e-05/0.1191, allocations: 11.98 kB / 475.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1191, allocations: 0 / 475.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.1191, allocations: 4 kB / 475.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1191, allocations: 0 / 475.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1191, allocations: 4 kB / 475.2 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000446/0.1196, allocations: 247.2 kB / 475.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-05/0.1196, allocations: 92.97 kB / 475.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.1196, allocations: 0 / 475.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1198, allocations: 23.98 kB / 475.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.471e-05/0.1198, allocations: 11.97 kB / 475.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.1199, allocations: 7.938 kB / 475.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.151e-05/0.1199, allocations: 112.6 kB / 475.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1199, allocations: 4.062 kB / 475.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002376/0.1202, allocations: 19.94 kB / 475.7 MB, free: 7.516 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.0006943/0.1209, allocations: 0.7826 MB / 476.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002959/0.1212, allocations: 83.89 kB / 476.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1212, allocations: 0 / 476.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.1213, allocations: 48.03 kB / 476.7 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.1217, allocations: 23.98 kB / 476.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.1237, allocations: 1.644 MB / 478.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.1239, allocations: 0.6924 MB / 479 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.724e-05/0.1239, allocations: 12.55 kB / 479 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.873e-05/0.124, allocations: 31.62 kB / 479.1 MB, free: 4.062 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.124, allocations: 3.938 kB / 479.1 MB, free: 4.059 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01914/0.1432, allocations: 2.587 MB / 481.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/7.902, allocations: 7.109 kB / 481.7 MB, free: 1.527 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 & /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