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.0009434/0.0009435, allocations: 194 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.5 MB / 244.1 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007286/0.0007282, allocations: 107.9 kB / 296.2 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2957/0.2957, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000244/0.000244, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3179, allocations: 62.95 MB / 0.5165 GB, free: 37.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.118/0.4359, allocations: 91.7 MB / 0.606 GB, free: 13.66 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.4362, allocations: 59.97 kB / 0.6061 GB, free: 13.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01675/0.453, allocations: 6.345 MB / 0.6123 GB, free: 7.145 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.453, allocations: 4 kB / 0.6123 GB, free: 7.141 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.888e-06/0.453, allocations: 4 kB / 0.6123 GB, free: 7.137 MB / 426.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.0005642/0.4536, allocations: 499.2 kB / 0.6128 GB, free: 6.598 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.4537, allocations: 8.875 kB / 0.6128 GB, free: 6.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008711/0.4545, allocations: 72.7 kB / 0.6128 GB, free: 6.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.4547, allocations: 192 kB / 0.613 GB, free: 6.293 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.4547, allocations: 24.94 kB / 0.613 GB, free: 6.266 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.148e-05/0.4548, allocations: 24.38 kB / 0.6131 GB, free: 6.242 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003495/0.4551, allocations: 197.5 kB / 0.6133 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.4551, allocations: 192 / 0.6133 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.4552, allocations: 15.94 kB / 0.6133 GB, free: 6.027 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.4552, allocations: 8 kB / 0.6133 GB, free: 6.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.4554, allocations: 142.2 kB / 0.6134 GB, free: 5.883 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008075/0.4563, allocations: 0.6044 MB / 0.614 GB, free: 5.223 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004979/0.4568, allocations: 226 kB / 0.6142 GB, free: 4.996 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.4569, allocations: 73.3 kB / 0.6143 GB, free: 4.922 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.4569, allocations: 240 / 0.6143 GB, free: 4.922 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.457, allocations: 46.73 kB / 0.6143 GB, free: 4.867 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 9.32e-07/0.457, allocations: 3.938 kB / 0.6143 GB, free: 4.863 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.0004333/0.4574, allocations: 211.9 kB / 0.6145 GB, free: 4.652 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.4575, allocations: 59.34 kB / 0.6146 GB, free: 4.582 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.607e-05/0.4575, allocations: 105.8 kB / 0.6147 GB, free: 4.469 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/0.4576, allocations: 29.7 kB / 0.6147 GB, free: 4.434 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.947e-05/0.4577, allocations: 136.5 kB / 0.6149 GB, free: 4.293 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.342e-05/0.4577, allocations: 86.75 kB / 0.6149 GB, free: 4.207 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-06/0.4577, allocations: 4 kB / 0.6149 GB, free: 4.203 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.452e-05/0.4578, allocations: 318.8 kB / 0.6152 GB, free: 3.883 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.02e-05/0.4579, allocations: 47.97 kB / 0.6153 GB, free: 3.836 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.043e-05/0.458, allocations: 45.14 kB / 0.6153 GB, free: 3.793 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.4583, allocations: 130.2 kB / 0.6155 GB, free: 3.664 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.4583, allocations: 0 / 0.6155 GB, free: 3.664 MB / 426.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002614/0.4585, allocations: 173.4 kB / 0.6156 GB, free: 3.488 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.4586, allocations: 7.938 kB / 0.6156 GB, free: 3.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.4586, allocations: 0 / 0.6156 GB, free: 3.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.4586, allocations: 0 / 0.6156 GB, free: 3.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.4589, allocations: 107.9 kB / 0.6157 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.459, allocations: 0 / 0.6157 GB, free: 3.375 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.279e-05/0.459, allocations: 11.84 kB / 0.6157 GB, free: 3.363 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.459, allocations: 8 kB / 0.6158 GB, free: 3.355 MB / 426.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 0.0001018/0.4592, allocations: 129.8 kB / 0.6159 GB, free: 3.219 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.295e-05/0.4592, allocations: 15.84 kB / 0.6159 GB, free: 3.203 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.338e-05/0.4593, allocations: 25.12 kB / 0.6159 GB, free: 3.184 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.4593, allocations: 0 / 0.6159 GB, free: 3.184 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.4593, allocations: 3.984 kB / 0.6159 GB, free: 3.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4593, allocations: 4 kB / 0.6159 GB, free: 3.176 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.4595, allocations: 265.4 kB / 0.6162 GB, free: 2.867 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4596, allocations: 3.984 kB / 0.6162 GB, free: 2.863 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003461/0.4599, allocations: 99.89 kB / 0.6163 GB, free: 2.766 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.4599, allocations: 3.938 kB / 0.6163 GB, free: 2.762 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.4599, allocations: 8 kB / 0.6163 GB, free: 2.754 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4599, allocations: 0 / 0.6163 GB, free: 2.754 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.46, allocations: 0 / 0.6163 GB, free: 2.754 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.4603, allocations: 271.6 kB / 0.6165 GB, free: 2.473 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-05/0.4603, allocations: 100.8 kB / 0.6166 GB, free: 2.355 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.4603, allocations: 11.98 kB / 0.6167 GB, free: 2.344 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.271e-05/0.4604, allocations: 4.531 kB / 0.6167 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.4605, allocations: 23.95 kB / 0.6167 GB, free: 2.316 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.4605, allocations: 4 kB / 0.6167 GB, free: 2.312 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.82e-05/0.4605, allocations: 91.52 kB / 0.6168 GB, free: 2.223 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4605, allocations: 0 / 0.6168 GB, free: 2.223 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002536/0.4608, allocations: 51.78 kB / 0.6168 GB, free: 2.172 MB / 426.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 0.0001276/0.4609, allocations: 99.25 kB / 0.6169 GB, free: 2.066 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002455/0.4612, allocations: 132.1 kB / 0.617 GB, free: 1.938 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4612, allocations: 0 / 0.617 GB, free: 1.938 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.4613, allocations: 91.77 kB / 0.6171 GB, free: 1.848 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.4616, allocations: 8 kB / 0.6171 GB, free: 1.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007104/0.4623, allocations: 0.6242 MB / 0.6177 GB, free: 1.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.4626, allocations: 0.7322 MB / 0.6185 GB, free: 432 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.149e-05/0.4626, allocations: 19.44 kB / 0.6185 GB, free: 412 kB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4626, allocations: 0 / 0.6185 GB, free: 412 kB / 426.7 MB Notification: Performance of Templates: time 0.002902/0.4655, allocations: 1.687 MB / 0.6201 GB, free: 14.71 MB / 442.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/jenkins1/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