Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_trunk_cpp_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|slewRateLimiter.y|idealDerivative.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009638/0.0009637, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 226.5 MB / 243.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007728/0.0007728, allocations: 105.6 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3037/0.3037, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002518, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3082, allocations: 62.95 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.00147/0.3097, allocations: 1.367 MB / 0.5172 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008893/0.3106, allocations: 0.6086 MB / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.295e-05/0.3107, allocations: 2.562 kB / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.227e-05/0.3107, allocations: 7.219 kB / 0.5178 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.437e-05/0.3108, allocations: 11.88 kB / 0.5178 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004587/0.3113, allocations: 126.4 kB / 0.5179 GB, free: 35.74 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001618/0.3115, allocations: 128.4 kB / 0.5181 GB, free: 35.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.3116, allocations: 30.45 kB / 0.5181 GB, free: 35.67 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.3118, allocations: 67.19 kB / 0.5182 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.429e-05/0.3119, allocations: 56.39 kB / 0.5182 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.3119, allocations: 5.75 kB / 0.5182 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.177e-05/0.312, allocations: 14.03 kB / 0.5182 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.577e-05/0.312, allocations: 23.72 kB / 0.5182 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.667e-05/0.3121, allocations: 75.03 kB / 0.5183 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001093/0.3122, allocations: 87.48 kB / 0.5184 GB, free: 35.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3122, allocations: 3.938 kB / 0.5184 GB, free: 35.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3122, allocations: 2.844 kB / 0.5184 GB, free: 35.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.3122, allocations: 0 / 0.5184 GB, free: 35.51 MB / 378.7 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.000529/0.3127, allocations: 441.4 kB / 0.5188 GB, free: 35.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.3128, allocations: 12.84 kB / 0.5188 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.3129, allocations: 27.52 kB / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.3131, allocations: 224.4 kB / 0.5191 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.3132, allocations: 5.812 kB / 0.5191 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.61e-05/0.3132, allocations: 13.81 kB / 0.5191 GB, free: 34.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.3136, allocations: 190 kB / 0.5193 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.3136, allocations: 0 / 0.5193 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.3136, allocations: 6.906 kB / 0.5193 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.3136, allocations: 7.984 kB / 0.5193 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003758/0.314, allocations: 153.2 kB / 0.5194 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007172/0.3148, allocations: 472.3 kB / 0.5199 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005642/0.3153, allocations: 247.9 kB / 0.5201 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.3155, allocations: 93.28 kB / 0.5202 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.3156, allocations: 3.938 kB / 0.5202 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.3156, allocations: 38.56 kB / 0.5203 GB, free: 34.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.3156, allocations: 0 / 0.5203 GB, free: 34.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.001308/0.3169, allocations: 0.6571 MB / 0.5209 GB, free: 33.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.317, allocations: 106.8 kB / 0.521 GB, free: 33.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.3171, allocations: 152.3 kB / 0.5211 GB, free: 33.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.3171, allocations: 28.7 kB / 0.5212 GB, free: 33.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.617e-05/0.3172, allocations: 117.3 kB / 0.5213 GB, free: 33.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.806e-05/0.3172, allocations: 33.78 kB / 0.5213 GB, free: 33.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.354e-06/0.3172, allocations: 0 / 0.5213 GB, free: 33.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.833e-05/0.3173, allocations: 325.1 kB / 0.5216 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.3175, allocations: 87.08 kB / 0.5217 GB, free: 33.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.3177, allocations: 116.9 kB / 0.5218 GB, free: 33.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004167/0.3181, allocations: 172.5 kB / 0.522 GB, free: 33.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3181, allocations: 0 / 0.522 GB, free: 33.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004444/0.3186, allocations: 217.3 kB / 0.5222 GB, free: 33.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.383e-05/0.3186, allocations: 99.09 kB / 0.5223 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.3187, allocations: 0 / 0.5223 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3187, allocations: 6.5 kB / 0.5223 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.3189, allocations: 46.38 kB / 0.5223 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.3189, allocations: 0 / 0.5223 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.319, allocations: 32.98 kB / 0.5224 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.319, allocations: 0 / 0.5224 GB, free: 32.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.898e-06/0.319, allocations: 9.656 kB / 0.5224 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002251/0.3193, allocations: 94.12 kB / 0.5225 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-06/0.3193, allocations: 0 / 0.5225 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-06/0.3193, allocations: 384 / 0.5225 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.031e-05/0.3194, allocations: 30.97 kB / 0.5225 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.3194, allocations: 3.938 kB / 0.5225 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.638e-05/0.3195, allocations: 18.25 kB / 0.5225 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.3195, allocations: 5.938 kB / 0.5225 GB, free: 32.88 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.3196, allocations: 190.5 kB / 0.5227 GB, free: 32.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.085e-05/0.3197, allocations: 15.91 kB / 0.5227 GB, free: 32.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/0.3197, allocations: 22.41 kB / 0.5227 GB, free: 32.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.3197, allocations: 7.875 kB / 0.5228 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3197, allocations: 0 / 0.5228 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3197, allocations: 0 / 0.5228 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007661/0.3205, allocations: 0.5473 MB / 0.5233 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3205, allocations: 3.938 kB / 0.5233 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.3207, allocations: 48.44 kB / 0.5233 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3207, allocations: 0 / 0.5233 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.3207, allocations: 2.969 kB / 0.5233 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3207, allocations: 0 / 0.5233 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3207, allocations: 0 / 0.5233 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006781/0.3214, allocations: 422.2 kB / 0.5237 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.333e-05/0.3215, allocations: 91.64 kB / 0.5238 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.331e-05/0.3215, allocations: 3.938 kB / 0.5238 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/0.3217, allocations: 61.17 kB / 0.5239 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.3218, allocations: 9.234 kB / 0.5239 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.3218, allocations: 3.062 kB / 0.5239 GB, free: 31.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.875e-05/0.3219, allocations: 119 kB / 0.524 GB, free: 31.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.3219, allocations: 4 kB / 0.524 GB, free: 31.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002947/0.3222, allocations: 38.94 kB / 0.5241 GB, free: 31.86 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.753e-05/0.3223, allocations: 99.83 kB / 0.5242 GB, free: 31.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005502/0.3229, allocations: 232.7 kB / 0.5244 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3229, allocations: 480 / 0.5244 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002308/0.3231, allocations: 97.44 kB / 0.5245 GB, free: 31.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.3235, allocations: 39.81 kB / 0.5245 GB, free: 31.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005809/0.3241, allocations: 357.5 kB / 0.5248 GB, free: 31.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001269/0.3242, allocations: 0.7029 MB / 0.5255 GB, free: 30.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.665e-05/0.3243, allocations: 17.41 kB / 0.5255 GB, free: 30.74 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3243, allocations: 4 kB / 0.5256 GB, free: 30.73 MB / 378.7 MB Notification: Performance of Templates: time 0.003193/0.3275, allocations: 1.801 MB / 0.5273 GB, free: 30.61 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches