Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001441/0.001441, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.857/1.857, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 88.42 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003923, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3195, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.4348, allocations: 75.71 MB / 450.2 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.4351, allocations: 67.97 kB / 450.3 MB, free: 5.004 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005421/0.4405, allocations: 1.306 MB / 451.6 MB, free: 3.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4405, allocations: 224 / 451.6 MB, free: 3.695 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.4405, allocations: 0 / 451.6 MB, free: 3.695 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006081/0.4412, allocations: 391.1 kB / 452 MB, free: 3.266 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.4412, allocations: 8.031 kB / 452 MB, free: 3.258 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.4413, allocations: 7.906 kB / 452 MB, free: 3.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.4414, allocations: 166.9 kB / 452.2 MB, free: 3.047 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.4414, allocations: 12 kB / 452.2 MB, free: 3.035 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.4415, allocations: 4 kB / 452.2 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004086/0.4419, allocations: 93.59 kB / 452.3 MB, free: 2.934 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.4419, allocations: 0 / 452.3 MB, free: 2.934 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/0.4419, allocations: 7.969 kB / 452.3 MB, free: 2.926 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.442, allocations: 8 kB / 452.3 MB, free: 2.918 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005882/0.4425, allocations: 99.86 kB / 452.4 MB, free: 2.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004797/0.443, allocations: 308.7 kB / 452.7 MB, free: 2.469 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.4435, allocations: 90.56 kB / 452.8 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.242e-05/0.4435, allocations: 3.984 kB / 452.8 MB, free: 2.367 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.4435, allocations: 30.56 kB / 452.8 MB, free: 2.328 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.503e-06/0.4435, allocations: 0 / 452.8 MB, free: 2.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0009861/0.4445, allocations: 189.6 kB / 453 MB, free: 2.137 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.4446, allocations: 51.41 kB / 453 MB, free: 2.074 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.696e-05/0.4447, allocations: 108.9 kB / 453.1 MB, free: 1.961 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.4447, allocations: 25.7 kB / 453.2 MB, free: 1.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.118e-05/0.4448, allocations: 158.5 kB / 453.3 MB, free: 1.773 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.4448, allocations: 19.73 kB / 453.3 MB, free: 1.754 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.765e-06/0.4449, allocations: 0 / 453.3 MB, free: 1.754 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.445, allocations: 322.8 kB / 453.7 MB, free: 1.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.4453, allocations: 43.95 kB / 453.7 MB, free: 1.387 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002816/0.4456, allocations: 51.97 kB / 453.8 MB, free: 1.336 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/0.4459, allocations: 43.95 kB / 453.8 MB, free: 1.293 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4459, allocations: 0 / 453.8 MB, free: 1.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0006233/0.4465, allocations: 134.1 kB / 453.9 MB, free: 1.156 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.4465, allocations: 5.094 kB / 453.9 MB, free: 1.152 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.4466, allocations: 8 kB / 453.9 MB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.4466, allocations: 0 / 453.9 MB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.4468, allocations: 31.91 kB / 454 MB, free: 1.113 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.4468, allocations: 3.938 kB / 454 MB, free: 1.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.447, allocations: 15.98 kB / 454 MB, free: 1.094 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.447, allocations: 8 kB / 454 MB, free: 1.086 MB / 330.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 (5): * Single equations (assignments): 5 * 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 9.32e-05/0.4471, allocations: 113.8 kB / 454.1 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.613e-05/0.4472, allocations: 3.906 kB / 454.1 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006855/0.4479, allocations: 153.6 kB / 454.3 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.4479, allocations: 0 / 454.3 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4479, allocations: 0 / 454.3 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.4479, allocations: 0 / 454.3 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.4482, allocations: 193.6 kB / 454.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4482, allocations: 384 / 454.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.4484, allocations: 35.91 kB / 454.5 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.4485, allocations: 0 / 454.5 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.4485, allocations: 4 kB / 454.5 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.4485, allocations: 3.938 kB / 454.5 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4485, allocations: 0 / 454.5 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00068/0.4492, allocations: 239.4 kB / 454.7 MB, free: 284 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.4493, allocations: 85 kB / 454.8 MB, free: 180 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.4493, allocations: 8 kB / 454.8 MB, free: 172 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.4495, allocations: 15.98 kB / 454.8 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.4496, allocations: 3.984 kB / 454.8 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.4496, allocations: 4 kB / 454.8 MB, free: 148 kB / 330.7 MB Notification: Performance of sorting global known variables: time 5.417e-05/0.4496, allocations: 91.27 kB / 454.9 MB, free: 56 kB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4496, allocations: 0 / 454.9 MB, free: 56 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003176/0.45, allocations: 15.91 kB / 455 MB, free: 40 kB / 330.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 (7): * Single equations (assignments): 7 * 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.0001654/0.4502, allocations: 103.2 kB / 455.1 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006312/0.4508, allocations: 111.9 kB / 455.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4508, allocations: 0 / 455.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.4511, allocations: 68.05 kB / 455.2 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.4514, allocations: 6.062 kB / 455.2 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004381/0.4518, allocations: 209.2 kB / 455.4 MB, free: 15.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.4521, allocations: 0.6926 MB / 456.1 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.635e-05/0.4522, allocations: 15.42 kB / 456.1 MB, free: 14.77 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4522, allocations: 0 / 456.1 MB, free: 14.77 MB / 346.7 MB Notification: Performance of Templates: time 0.002947/0.4551, allocations: 0.957 MB / 457.1 MB, free: 13.82 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches