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.0009833/0.0009833, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 226.6 MB / 243.1 MB, free: 14.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007711/0.0007711, allocations: 109 kB / 295.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2039/0.2039, allocations: 44.84 MB / 392 MB, free: 9.281 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002242, allocations: 12 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09086/0.0911, allocations: 62.96 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.002039/0.09318, allocations: 1.735 MB / 0.517 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.1706/0.2638, allocations: 1.237 MB / 0.5182 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.2639, allocations: 4.531 kB / 0.5182 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.668e-05/0.264, allocations: 17.02 kB / 0.5182 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.309e-05/0.2641, allocations: 21.64 kB / 0.5183 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004304/0.2645, allocations: 149 kB / 0.5184 GB, free: 9.836 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.2647, allocations: 169.9 kB / 0.5186 GB, free: 9.836 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.2649, allocations: 81.48 kB / 0.5186 GB, free: 9.828 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.265, allocations: 59.25 kB / 0.5187 GB, free: 9.812 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.364e-05/0.2651, allocations: 68.48 kB / 0.5188 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.2651, allocations: 7.016 kB / 0.5188 GB, free: 9.785 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002608/0.2654, allocations: 132.2 kB / 0.5189 GB, free: 9.773 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.223e-05/0.2654, allocations: 31.06 kB / 0.5189 GB, free: 9.766 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.448e-05/0.2655, allocations: 56.42 kB / 0.519 GB, free: 9.727 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.2658, allocations: 214.8 kB / 0.5192 GB, free: 9.699 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.2658, allocations: 0 / 0.5192 GB, free: 9.699 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2658, allocations: 2.875 kB / 0.5192 GB, free: 9.699 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.2658, allocations: 0 / 0.5192 GB, free: 9.699 MB / 346.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.0003952/0.2662, allocations: 490.9 kB / 0.5197 GB, free: 9.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.2662, allocations: 9.406 kB / 0.5197 GB, free: 9.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007916/0.267, allocations: 78.08 kB / 0.5197 GB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.574e-05/0.2671, allocations: 187.9 kB / 0.5199 GB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.2671, allocations: 22.91 kB / 0.5199 GB, free: 9.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.2672, allocations: 32.97 kB / 0.52 GB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.2675, allocations: 201.8 kB / 0.5202 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.2675, allocations: 1.859 kB / 0.5202 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.2675, allocations: 8.938 kB / 0.5202 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.2675, allocations: 8.078 kB / 0.5202 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002727/0.2678, allocations: 147.4 kB / 0.5203 GB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006824/0.2685, allocations: 0.5966 MB / 0.5209 GB, free: 8.664 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000473/0.269, allocations: 228.4 kB / 0.5211 GB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.2691, allocations: 74.12 kB / 0.5212 GB, free: 8.621 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.2691, allocations: 6.703 kB / 0.5212 GB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.376e-05/0.2692, allocations: 34.89 kB / 0.5212 GB, free: 8.578 MB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 1.333e-06/0.2692, allocations: 0 / 0.5212 GB, free: 8.578 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.0004258/0.2696, allocations: 216.9 kB / 0.5214 GB, free: 8.539 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.197e-05/0.2696, allocations: 54.28 kB / 0.5215 GB, free: 8.477 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.971e-05/0.2697, allocations: 107.3 kB / 0.5216 GB, free: 8.375 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.2697, allocations: 30.95 kB / 0.5216 GB, free: 8.344 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.519e-05/0.2697, allocations: 136.8 kB / 0.5218 GB, free: 8.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.973e-05/0.2698, allocations: 91.25 kB / 0.5218 GB, free: 8.172 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.2698, allocations: 5.906 kB / 0.5219 GB, free: 8.172 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.314e-05/0.2699, allocations: 321.7 kB / 0.5222 GB, free: 7.859 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.263e-05/0.27, allocations: 47.86 kB / 0.5222 GB, free: 7.855 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.647e-05/0.2701, allocations: 57.28 kB / 0.5223 GB, free: 7.844 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.333e-05/0.2702, allocations: 48.7 kB / 0.5223 GB, free: 7.844 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2702, allocations: 0 / 0.5223 GB, free: 7.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002457/0.2704, allocations: 171.4 kB / 0.5225 GB, free: 7.797 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2704, allocations: 5.562 kB / 0.5225 GB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2704, allocations: 0.6094 kB / 0.5225 GB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.2705, allocations: 1.188 kB / 0.5225 GB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.2708, allocations: 106.1 kB / 0.5226 GB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.2708, allocations: 2.641 kB / 0.5226 GB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.435e-05/0.2709, allocations: 18.27 kB / 0.5226 GB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.2709, allocations: 4.125 kB / 0.5226 GB, free: 7.781 MB / 346.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 7.261e-05/0.271, allocations: 133.2 kB / 0.5227 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.214e-05/0.271, allocations: 17.23 kB / 0.5227 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.086e-05/0.2711, allocations: 24.69 kB / 0.5228 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2711, allocations: 3.312 kB / 0.5228 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.2711, allocations: 2.484 kB / 0.5228 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2711, allocations: 1.625 kB / 0.5228 GB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000236/0.2714, allocations: 267.2 kB / 0.523 GB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2714, allocations: 1.469 kB / 0.523 GB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003427/0.2717, allocations: 99.12 kB / 0.5231 GB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2717, allocations: 1.156 kB / 0.5231 GB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.2717, allocations: 16.31 kB / 0.5231 GB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2717, allocations: 1.812 kB / 0.5231 GB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2718, allocations: 0 / 0.5231 GB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.272, allocations: 277.3 kB / 0.5234 GB, free: 7.297 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.241e-05/0.2721, allocations: 89.41 kB / 0.5235 GB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.2721, allocations: 7.359 kB / 0.5235 GB, free: 7.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.2722, allocations: 12.56 kB / 0.5235 GB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.369e-05/0.2722, allocations: 17.27 kB / 0.5235 GB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.2722, allocations: 5.125 kB / 0.5235 GB, free: 7.191 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.069e-05/0.2723, allocations: 83.75 kB / 0.5236 GB, free: 7.117 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2723, allocations: 0 / 0.5236 GB, free: 7.117 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002252/0.2725, allocations: 45.19 kB / 0.5237 GB, free: 7.109 MB / 346.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.567e-05/0.2726, allocations: 103.1 kB / 0.5238 GB, free: 7.016 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002575/0.2728, allocations: 138.2 kB / 0.5239 GB, free: 7.004 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.2729, allocations: 0 / 0.5239 GB, free: 7.004 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.273, allocations: 76.36 kB / 0.524 GB, free: 7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.2732, allocations: 10.86 kB / 0.524 GB, free: 7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006712/0.2739, allocations: 0.6284 MB / 0.5246 GB, free: 6.637 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001632/0.274, allocations: 0.7374 MB / 0.5253 GB, free: 5.934 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.961e-05/0.2741, allocations: 18.7 kB / 0.5253 GB, free: 5.93 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2741, allocations: 1.188 kB / 0.5253 GB, free: 5.93 MB / 346.7 MB Notification: Performance of Templates: time 0.00317/0.2773, allocations: 1.712 MB / 0.527 GB, free: 5.789 MB / 346.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