Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.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.Limiters,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Limiters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Limiters,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Limiters",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.0006791/0.0006791, allocations: 93.95 kB / 17.35 MB, free: 6.367 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.0007485/0.0007485, allocations: 174.7 kB / 18.25 MB, free: 5.52 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.205/1.205, allocations: 223.3 MB / 242.3 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1681/0.1681, allocations: 44.25 MB / 337.7 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002922, allocations: 8 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.09722, allocations: 61.92 MB / 472.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.001649/0.0989, allocations: 1.38 MB / 473.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009662/0.09989, allocations: 0.5924 MB / 474.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.44e-05/0.1, allocations: 8 kB / 474.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.028e-05/0.1001, allocations: 11.86 kB / 474.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.1002, allocations: 7.938 kB / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.1006, allocations: 134.6 kB / 474.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.1008, allocations: 139.7 kB / 474.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.1009, allocations: 29.44 kB / 474.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.101, allocations: 63.7 kB / 474.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.1012, allocations: 55.75 kB / 474.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.1012, allocations: 4 kB / 474.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.984e-05/0.1012, allocations: 8 kB / 474.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.071e-05/0.1012, allocations: 27.89 kB / 474.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.459e-05/0.1013, allocations: 77.31 kB / 474.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.1015, allocations: 127.8 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1015, allocations: 0 / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1015, allocations: 4 kB / 475 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.1015, allocations: 0 / 475 MB, free: 10.59 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006152/0.1021, allocations: 439.1 kB / 475.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1022, allocations: 8.031 kB / 475.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.844e-05/0.1022, allocations: 38.75 kB / 475.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.23e-05/0.1023, allocations: 24.73 kB / 475.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.1025, allocations: 216.6 kB / 475.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.1025, allocations: 4.375 kB / 475.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.1025, allocations: 11.94 kB / 475.7 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.103, allocations: 190.5 kB / 475.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.103, allocations: 0 / 475.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.103, allocations: 8 kB / 475.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.103, allocations: 4 kB / 475.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004365/0.1035, allocations: 167.7 kB / 476.1 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008278/0.1043, allocations: 480.4 kB / 476.6 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006329/0.1049, allocations: 246.5 kB / 476.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/0.1052, allocations: 88.8 kB / 476.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.1052, allocations: 4 kB / 476.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.1053, allocations: 34.56 kB / 476.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.1053, allocations: 0 / 476.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.001507/0.1068, allocations: 0.6617 MB / 477.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.1068, allocations: 102.8 kB / 477.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.107, allocations: 158.2 kB / 477.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.107, allocations: 29.7 kB / 477.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.868e-05/0.1071, allocations: 108 kB / 478 MB, free: 7.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.715e-05/0.1071, allocations: 31.7 kB / 478 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.1072, allocations: 17.7 kB / 478 MB, free: 7.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1073, allocations: 322.8 kB / 478.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.1075, allocations: 87.94 kB / 478.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.1078, allocations: 114.5 kB / 478.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004525/0.1083, allocations: 176.8 kB / 478.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1083, allocations: 288 / 478.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005596/0.1088, allocations: 233.3 kB / 478.9 MB, free: 6.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.776e-05/0.1089, allocations: 92.94 kB / 479 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1089, allocations: 0 / 479 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.1089, allocations: 0 / 479 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.1091, allocations: 55.95 kB / 479.1 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.1092, allocations: 0 / 479.1 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.1093, allocations: 31.97 kB / 479.1 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.1093, allocations: 4 kB / 479.1 MB, free: 6.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.921e-06/0.1093, allocations: 4 kB / 479.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002224/0.1096, allocations: 95.89 kB / 479.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.1096, allocations: 4 kB / 479.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-06/0.1096, allocations: 4 kB / 479.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.1097, allocations: 27.92 kB / 479.3 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.1097, allocations: 4.484 kB / 479.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.869e-05/0.1098, allocations: 15.98 kB / 479.3 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.1098, allocations: 4 kB / 479.3 MB, free: 5.996 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0001191/0.1099, allocations: 197.1 kB / 479.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.11, allocations: 15.89 kB / 479.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.976e-05/0.11, allocations: 16.72 kB / 479.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.11, allocations: 3.938 kB / 479.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.11, allocations: 0 / 479.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.11, allocations: 4 kB / 479.5 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008834/0.1109, allocations: 0.5538 MB / 480.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1109, allocations: 0 / 480.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001811/0.1111, allocations: 44 kB / 480.1 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1111, allocations: 0 / 480.1 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1112, allocations: 7.938 kB / 480.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.1112, allocations: 3.984 kB / 480.1 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1112, allocations: 0 / 480.1 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008074/0.112, allocations: 424 kB / 480.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.323e-05/0.112, allocations: 89.05 kB / 480.6 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.1121, allocations: 3.984 kB / 480.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.1123, allocations: 52.02 kB / 480.7 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.649e-05/0.1124, allocations: 8 kB / 480.7 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.1124, allocations: 11.98 kB / 480.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.549e-05/0.1125, allocations: 120.1 kB / 480.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1125, allocations: 0 / 480.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.1128, allocations: 36 kB / 480.8 MB, free: 4.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealDerivative.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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.001049/0.1138, allocations: 0.9439 MB / 481.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000611/0.1145, allocations: 243.8 kB / 482 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1145, allocations: 0 / 482 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002347/0.1147, allocations: 88 kB / 482.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.1151, allocations: 39.06 kB / 482.1 MB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.1178, allocations: 2.072 MB / 484.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.118, allocations: 0.7049 MB / 484.9 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.413e-05/0.1181, allocations: 20.86 kB / 484.9 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.517e-05/0.1182, allocations: 39.42 kB / 485 MB, free: 40 kB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1182, allocations: 0 / 485 MB, free: 40 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01285/0.1311, allocations: 3.42 MB / 488.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/0.1313, allocations: 179.7 kB / 488.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/1.787, allocations: 4 kB / 488.6 MB, free: 12.49 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Limiters_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Limiters.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Limiters/Limiters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,slewRateLimiter.y,limiter.y,variableLimiter.y,deadZone.y,sine.y,constPos.y,constNeg.y,idealDerivative.y Variables in the result:constNeg.k,constNeg.y,constPos.k,constPos.y,deadZone.u,deadZone.uMax,deadZone.uMin,deadZone.y,der(idealDerivative.u),der(slewRateLimiter.y),idealDerivative.u,idealDerivative.y,limiter.homotopyType,limiter.strict,limiter.u,limiter.uMax,limiter.uMin,limiter.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,slewRateLimiter.Falling,slewRateLimiter.Rising,slewRateLimiter.Td,slewRateLimiter.initType,slewRateLimiter.strict,slewRateLimiter.u,slewRateLimiter.y,slewRateLimiter.y_start,time,variableLimiter.homotopyType,variableLimiter.limit1,variableLimiter.limit2,variableLimiter.strict,variableLimiter.u,variableLimiter.y,variableLimiter.ySimplified