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.001042/0.001042, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.3 MB / 246.9 MB, free: 10.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2065/0.2065, allocations: 46.1 MB / 344.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 77.38 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1025, allocations: 62.45 MB / 479.9 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.003043/0.1056, allocations: 1.758 MB / 481.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.107, allocations: 0.6508 MB / 482.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.1071, allocations: 0 / 482.3 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.605e-05/0.1072, allocations: 11.92 kB / 482.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.1073, allocations: 11.81 kB / 482.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004777/0.1078, allocations: 135.8 kB / 482.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.108, allocations: 139.7 kB / 482.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.1082, allocations: 37.05 kB / 482.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.1084, allocations: 59.81 kB / 482.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.1085, allocations: 67.67 kB / 482.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.1085, allocations: 8 kB / 482.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.284e-05/0.1086, allocations: 16 kB / 482.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.223e-05/0.1087, allocations: 27.84 kB / 482.8 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.313e-05/0.1087, allocations: 55.7 kB / 482.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.1089, allocations: 100 kB / 483 MB, free: 2.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1089, allocations: 0 / 483 MB, free: 2.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1089, allocations: 4 kB / 483 MB, free: 2.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1089, allocations: 0 / 483 MB, free: 2.617 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.0007139/0.1096, allocations: 455 kB / 483.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.1097, allocations: 8.875 kB / 483.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.1099, allocations: 24.73 kB / 483.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002668/0.1102, allocations: 220 kB / 483.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.1102, allocations: 12.38 kB / 483.7 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.1102, allocations: 8.375 kB / 483.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004074/0.1106, allocations: 176.4 kB / 483.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1107, allocations: 0 / 483.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.1107, allocations: 8 kB / 483.9 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.1107, allocations: 11.92 kB / 483.9 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003839/0.1111, allocations: 115.9 kB / 484 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009091/0.112, allocations: 456.5 kB / 484.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000546/0.1126, allocations: 190.5 kB / 484.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.1128, allocations: 76.8 kB / 484.7 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1128, allocations: 7.922 kB / 484.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.1129, allocations: 34.56 kB / 484.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.355e-06/0.1129, allocations: 3.938 kB / 484.8 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.001407/0.1143, allocations: 0.5602 MB / 485.3 MB, free: 64 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.643e-05/0.1144, allocations: 106.8 kB / 485.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.1145, allocations: 161.9 kB / 485.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.1146, allocations: 25.7 kB / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.831e-05/0.1146, allocations: 108.3 kB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/0.1147, allocations: 35.53 kB / 485.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.101e-05/0.1148, allocations: 29.7 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1149, allocations: 330.8 kB / 486.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.1151, allocations: 72.73 kB / 486.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.1153, allocations: 94.52 kB / 486.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003811/0.1157, allocations: 136.7 kB / 486.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1157, allocations: 0 / 486.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004713/0.1162, allocations: 193.6 kB / 486.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1162, allocations: 10.34 kB / 486.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1162, allocations: 0 / 486.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.1163, allocations: 0 / 486.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.1164, allocations: 43.89 kB / 486.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.1165, allocations: 0 / 486.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.1166, allocations: 31.91 kB / 486.7 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.1166, allocations: 4 kB / 486.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001502/0.1168, allocations: 120.1 kB / 486.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001217/0.1169, allocations: 58.55 kB / 486.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001676/0.1171, allocations: 68.83 kB / 486.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.192e-06/0.1171, allocations: 0 / 486.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.0002549/0.1174, allocations: 121.5 kB / 487 MB, free: 14.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.706e-06/0.1174, allocations: 4 kB / 487 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-06/0.1174, allocations: 0 / 487 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.388e-06/0.1174, allocations: 4 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.164e-05/0.1175, allocations: 27.95 kB / 487.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.1175, allocations: 4.484 kB / 487.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.609e-05/0.1176, allocations: 15.98 kB / 487.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.1176, allocations: 0 / 487.1 MB, free: 14.19 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.0001087/0.1177, allocations: 184.6 kB / 487.3 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.1178, allocations: 15.81 kB / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.834e-05/0.1178, allocations: 21.39 kB / 487.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1179, allocations: 7.938 kB / 487.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1179, allocations: 3.938 kB / 487.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1179, allocations: 0 / 487.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000889/0.1188, allocations: 0.5109 MB / 487.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.1188, allocations: 3.938 kB / 487.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.119, allocations: 31.97 kB / 487.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.119, allocations: 4 kB / 487.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.119, allocations: 11.88 kB / 487.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.119, allocations: 0 / 487.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.119, allocations: 0 / 487.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007268/0.1197, allocations: 368 kB / 488.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.816e-05/0.1198, allocations: 88.98 kB / 488.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.1199, allocations: 4 kB / 488.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.1201, allocations: 35.95 kB / 488.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.1202, allocations: 12.05 kB / 488.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.1202, allocations: 7.984 kB / 488.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.891e-05/0.1203, allocations: 121.8 kB / 488.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1203, allocations: 0 / 488.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003305/0.1207, allocations: 36 kB / 488.5 MB, free: 12.64 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.0001245/0.1208, allocations: 95.25 kB / 488.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005952/0.1214, allocations: 195.7 kB / 488.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1214, allocations: 0 / 488.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.1216, allocations: 71.94 kB / 488.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004392/0.1221, allocations: 39.97 kB / 488.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007458/0.1228, allocations: 348.5 kB / 489.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.1232, allocations: 0.7086 MB / 490 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.5e-05/0.1232, allocations: 19.42 kB / 490 MB, free: 11.11 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1232, allocations: 0 / 490 MB, free: 11.11 MB / 366.1 MB Notification: Performance of Templates: time 0.004023/0.1273, allocations: 1.863 MB / 491.9 MB, free: 9.258 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/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_trunk_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches