Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.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: translateModel(ModelicaTest.Blocks.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|idealDerivative.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Limiters") translateModel(ModelicaTest.Blocks.Limiters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|slewRateLimiter.y|limiter.y|variableLimiter.y|deadZone.y|sine.y|constPos.y|constNeg.y|idealDerivative.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Limiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009742/0.0009742, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001184, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 46.2 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002533/0.0002533, allocations: 8 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1049, allocations: 63.57 MB / 483.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.001784/0.1067, allocations: 1.404 MB / 484.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.1079, allocations: 0.6392 MB / 485.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.193e-05/0.108, allocations: 0 / 485.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.335e-05/0.108, allocations: 11.94 kB / 485.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.1082, allocations: 19.84 kB / 485.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004187/0.1086, allocations: 131.8 kB / 485.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001929/0.1088, allocations: 143.7 kB / 485.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.1089, allocations: 29.11 kB / 485.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.1091, allocations: 67.7 kB / 485.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.1092, allocations: 51.75 kB / 485.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.1092, allocations: 11.94 kB / 485.6 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.952e-05/0.1093, allocations: 8 kB / 485.6 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.483e-05/0.1093, allocations: 39.77 kB / 485.6 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.652e-05/0.1094, allocations: 77.42 kB / 485.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.1096, allocations: 127.8 kB / 485.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1096, allocations: 0 / 485.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1096, allocations: 0 / 485.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.1096, allocations: 0 / 485.8 MB, free: 1.395 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.0006327/0.1102, allocations: 445.7 kB / 486.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1103, allocations: 12.88 kB / 486.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.1105, allocations: 28.73 kB / 486.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.1107, allocations: 224 kB / 486.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.1107, allocations: 4.375 kB / 486.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.1108, allocations: 8.375 kB / 486.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000436/0.1112, allocations: 196.4 kB / 486.7 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1112, allocations: 0 / 486.7 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.1112, allocations: 4 kB / 486.7 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.1113, allocations: 4 kB / 486.7 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004572/0.1117, allocations: 159.8 kB / 486.9 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008507/0.1126, allocations: 480.3 kB / 487.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006777/0.1133, allocations: 238.5 kB / 487.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002616/0.1135, allocations: 96.78 kB / 487.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.1136, allocations: 4 kB / 487.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.1136, allocations: 34.56 kB / 487.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 2.916e-06/0.1136, allocations: 0 / 487.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.001599/0.1152, allocations: 0.6623 MB / 488.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.1153, allocations: 106.8 kB / 488.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.1154, allocations: 161.9 kB / 488.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.1155, allocations: 29.64 kB / 488.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.121e-05/0.1156, allocations: 116.1 kB / 488.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.508e-05/0.1156, allocations: 27.56 kB / 488.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.1156, allocations: 17.7 kB / 488.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1158, allocations: 322.8 kB / 489.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.116, allocations: 87.94 kB / 489.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.1163, allocations: 118.5 kB / 489.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004807/0.1168, allocations: 172.8 kB / 489.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1168, allocations: 0 / 489.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005608/0.1174, allocations: 233.3 kB / 489.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.936e-05/0.1174, allocations: 94.97 kB / 489.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1175, allocations: 0 / 489.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1175, allocations: 4 kB / 489.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.1177, allocations: 47.95 kB / 489.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.1177, allocations: 160 / 489.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.1179, allocations: 35.97 kB / 489.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.1179, allocations: 4 kB / 489.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.504e-06/0.1179, allocations: 11.94 kB / 489.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002356/0.1181, allocations: 95.94 kB / 490 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-06/0.1182, allocations: 384 / 490 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-06/0.1182, allocations: 0 / 490 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.1183, allocations: 31.92 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.793e-06/0.1183, allocations: 0 / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.869e-05/0.1184, allocations: 19.92 kB / 490.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.1184, allocations: 3.938 kB / 490.1 MB, free: 12.82 MB / 366.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.0001144/0.1185, allocations: 201.1 kB / 490.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.92e-05/0.1186, allocations: 7.906 kB / 490.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.1186, allocations: 17.41 kB / 490.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.1186, allocations: 4 kB / 490.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.1186, allocations: 0 / 490.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1186, allocations: 3.938 kB / 490.3 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009379/0.1196, allocations: 0.5499 MB / 490.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1196, allocations: 0 / 490.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.1198, allocations: 51.94 kB / 490.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.1198, allocations: 7.938 kB / 490.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.1198, allocations: 7.922 kB / 490.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1199, allocations: 0 / 490.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.1199, allocations: 4 kB / 490.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008544/0.1207, allocations: 408.1 kB / 491.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.1208, allocations: 92.94 kB / 491.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.1208, allocations: 7.938 kB / 491.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.1211, allocations: 52.02 kB / 491.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.595e-05/0.1212, allocations: 11.98 kB / 491.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.1212, allocations: 4 kB / 491.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.064e-05/0.1213, allocations: 125.8 kB / 491.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1213, allocations: 0 / 491.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003147/0.1216, allocations: 32 kB / 491.7 MB, free: 11.15 MB / 366.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.000109/0.1217, allocations: 95.25 kB / 491.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006819/0.1224, allocations: 240 kB / 492 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1224, allocations: 0 / 492 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002642/0.1227, allocations: 99.98 kB / 492.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.1231, allocations: 28.17 kB / 492.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000638/0.1237, allocations: 355.8 kB / 492.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.124, allocations: 0.701 MB / 493.2 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.337e-05/0.1241, allocations: 24.86 kB / 493.2 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.96e-05/0.1242, allocations: 19.42 kB / 493.2 MB, free: 9.539 MB / 366.1 MB Notification: Performance of SimCode: time 1.533e-06/0.1242, allocations: 0 / 493.2 MB, free: 9.539 MB / 366.1 MB Notification: Performance of Templates: time 0.004681/0.1289, allocations: 2.076 MB / 495.3 MB, free: 7.484 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Limiters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Limiters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Limiters/Limiters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches