Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.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.ConversionBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ydegC|ydegF|ydegRk|ydeg|yrpm|ykmh|yday|yhour|yminute|ylitre|ykWh|ybar|ygps",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks") translateModel(ModelicaTest.Blocks.ConversionBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ydegC|ydegF|ydegRk|ydeg|yrpm|ykmh|yday|yhour|yminute|ylitre|ykWh|ybar|ygps",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009674/0.0009673, allocations: 196 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.339/1.339, allocations: 226.5 MB / 243.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007565/0.0007565, allocations: 102.1 kB / 295.5 MB, free: 6.629 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.303/0.303, allocations: 44.83 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004312/0.0004314, allocations: 8 kB / 465.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3201, allocations: 62.96 MB / 0.5159 GB, free: 37.4 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.001702/0.3219, allocations: 1.744 MB / 0.5176 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.3233, allocations: 1.242 MB / 0.5188 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.726e-05/0.3234, allocations: 3.031 kB / 0.5188 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.925e-05/0.3234, allocations: 14.48 kB / 0.5188 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.3235, allocations: 30.05 kB / 0.5188 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.3239, allocations: 148.5 kB / 0.519 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.324, allocations: 167.9 kB / 0.5191 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.3242, allocations: 97.3 kB / 0.5192 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.3243, allocations: 59.88 kB / 0.5193 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.118e-05/0.3244, allocations: 63.78 kB / 0.5193 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.3244, allocations: 5.844 kB / 0.5194 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.3247, allocations: 137.8 kB / 0.5195 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.889e-05/0.3247, allocations: 28.7 kB / 0.5195 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.475e-05/0.3247, allocations: 95.72 kB / 0.5196 GB, free: 34.81 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002066/0.325, allocations: 220.5 kB / 0.5198 GB, free: 34.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.325, allocations: 2.906 kB / 0.5198 GB, free: 34.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.325, allocations: 0 / 0.5198 GB, free: 34.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.325, allocations: 0 / 0.5198 GB, free: 34.74 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0004174/0.3254, allocations: 485.7 kB / 0.5203 GB, free: 34.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.3255, allocations: 16.12 kB / 0.5203 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007776/0.3262, allocations: 82.62 kB / 0.5204 GB, free: 34.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.369e-05/0.3263, allocations: 194 kB / 0.5206 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.3264, allocations: 17.44 kB / 0.5206 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.3264, allocations: 25.66 kB / 0.5206 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.3267, allocations: 202.1 kB / 0.5208 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.3267, allocations: 0 / 0.5208 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.3267, allocations: 10.91 kB / 0.5208 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3267, allocations: 9.969 kB / 0.5208 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002312/0.327, allocations: 148.5 kB / 0.521 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/0.3277, allocations: 0.5934 MB / 0.5215 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004257/0.3281, allocations: 227.8 kB / 0.5217 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.3282, allocations: 73.11 kB / 0.5218 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.3282, allocations: 7.203 kB / 0.5218 GB, free: 33.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.304e-05/0.3283, allocations: 33.55 kB / 0.5219 GB, free: 33.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.442e-06/0.3283, allocations: 0 / 0.5219 GB, free: 33.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.0003702/0.3286, allocations: 216.8 kB / 0.5221 GB, free: 33.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.3287, allocations: 58.31 kB / 0.5221 GB, free: 33.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.879e-05/0.3287, allocations: 103.7 kB / 0.5222 GB, free: 33.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.3288, allocations: 36.61 kB / 0.5223 GB, free: 33.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.84e-05/0.3288, allocations: 131.8 kB / 0.5224 GB, free: 32.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.413e-05/0.3289, allocations: 93.28 kB / 0.5225 GB, free: 32.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-06/0.3289, allocations: 6.938 kB / 0.5225 GB, free: 32.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.559e-05/0.3289, allocations: 322.1 kB / 0.5228 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.08e-05/0.329, allocations: 48.67 kB / 0.5228 GB, free: 32.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.488e-05/0.3291, allocations: 47.09 kB / 0.5229 GB, free: 32.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.3293, allocations: 116.2 kB / 0.523 GB, free: 32.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3293, allocations: 0 / 0.523 GB, free: 32.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002207/0.3295, allocations: 171.3 kB / 0.5231 GB, free: 32.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3295, allocations: 5.844 kB / 0.5232 GB, free: 32.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.3295, allocations: 3.938 kB / 0.5232 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.3296, allocations: 2.594 kB / 0.5232 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.3299, allocations: 101.8 kB / 0.5233 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.3299, allocations: 4 kB / 0.5233 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.796e-05/0.3299, allocations: 17.75 kB / 0.5233 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.33, allocations: 2.812 kB / 0.5233 GB, free: 32.34 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 (27): * Single equations (assignments): 27 * 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 8.122e-05/0.33, allocations: 133.8 kB / 0.5234 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.3301, allocations: 13.81 kB / 0.5234 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.175e-05/0.3301, allocations: 25.11 kB / 0.5234 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.3301, allocations: 2.906 kB / 0.5234 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.3302, allocations: 0 / 0.5234 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3302, allocations: 0 / 0.5234 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.3304, allocations: 274 kB / 0.5237 GB, free: 31.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3304, allocations: 3.938 kB / 0.5237 GB, free: 31.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.3307, allocations: 107.7 kB / 0.5238 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3307, allocations: 0 / 0.5238 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.3307, allocations: 0 / 0.5238 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3307, allocations: 2.719 kB / 0.5238 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3307, allocations: 4 kB / 0.5238 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.331, allocations: 278.7 kB / 0.5241 GB, free: 31.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.552e-05/0.331, allocations: 95.7 kB / 0.5242 GB, free: 31.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.3311, allocations: 5.5 kB / 0.5242 GB, free: 31.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.87e-05/0.3312, allocations: 11.03 kB / 0.5242 GB, free: 31.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/0.3312, allocations: 23.09 kB / 0.5242 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/0.3312, allocations: 2.781 kB / 0.5242 GB, free: 31.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.215e-05/0.3312, allocations: 89.06 kB / 0.5243 GB, free: 31.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3313, allocations: 0 / 0.5243 GB, free: 31.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002288/0.3315, allocations: 41.22 kB / 0.5243 GB, free: 31.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (27): * Single equations (assignments): 27 * 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 7.471e-05/0.3316, allocations: 96.72 kB / 0.5244 GB, free: 31.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.3318, allocations: 143.5 kB / 0.5246 GB, free: 31.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3318, allocations: 4 kB / 0.5246 GB, free: 31.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.728e-05/0.3319, allocations: 76.88 kB / 0.5247 GB, free: 31.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.3321, allocations: 14.69 kB / 0.5247 GB, free: 31.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005428/0.3327, allocations: 0.6187 MB / 0.5253 GB, free: 30.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.3329, allocations: 0.7311 MB / 0.526 GB, free: 30.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.86e-05/0.3329, allocations: 21.66 kB / 0.526 GB, free: 30.26 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3329, allocations: 0 / 0.526 GB, free: 30.26 MB / 378.7 MB Notification: Performance of Templates: time 0.002479/0.3354, allocations: 1.697 MB / 0.5277 GB, free: 30.11 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches