Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.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) 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(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 195.3 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007241/0.0007242, allocations: 107.9 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00023/0.00023, allocations: 12 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2369, allocations: 51.29 MB / 408.6 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08971/0.3266, allocations: 77.39 MB / 486 MB, free: 14.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.3269, allocations: 71.95 kB / 486.1 MB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003909/0.3308, allocations: 1.406 MB / 487.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3309, allocations: 0.9688 kB / 487.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3309, allocations: 0 / 487.5 MB, free: 12.75 MB / 362.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.0004299/0.3313, allocations: 384 kB / 487.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3314, allocations: 12.03 kB / 487.9 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.3314, allocations: 4.844 kB / 487.9 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.3315, allocations: 176.2 kB / 488.1 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.3316, allocations: 4.375 kB / 488.1 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.3316, allocations: 384 / 488.1 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002671/0.3319, allocations: 102.1 kB / 488.2 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3319, allocations: 0.8438 kB / 488.2 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.3319, allocations: 7.938 kB / 488.2 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.3319, allocations: 0 / 488.2 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003113/0.3322, allocations: 99.92 kB / 488.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003798/0.3326, allocations: 320.6 kB / 488.6 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.3329, allocations: 90.52 kB / 488.7 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.333, allocations: 52.89 kB / 488.7 MB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.333, allocations: 4 kB / 488.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.3331, allocations: 34.56 kB / 488.8 MB, free: 11.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.3331, allocations: 4 kB / 488.8 MB, free: 11.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005581/0.3336, allocations: 181.6 kB / 489 MB, free: 11.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.3337, allocations: 51.41 kB / 489 MB, free: 11.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.037e-05/0.3338, allocations: 113.8 kB / 489.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.322e-05/0.3338, allocations: 29.7 kB / 489.1 MB, free: 10.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.026e-05/0.3338, allocations: 99.97 kB / 489.2 MB, free: 10.81 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.3339, allocations: 11.81 kB / 489.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-06/0.3339, allocations: 0 / 489.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.722e-05/0.334, allocations: 322.8 kB / 489.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.3341, allocations: 43.97 kB / 489.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.3343, allocations: 51.95 kB / 489.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.3345, allocations: 100.7 kB / 489.8 MB, free: 10.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3346, allocations: 0 / 489.8 MB, free: 10.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003271/0.3349, allocations: 141.5 kB / 489.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.3349, allocations: 4 kB / 489.9 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3349, allocations: 0 / 489.9 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.3349, allocations: 4 kB / 489.9 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.3351, allocations: 23.98 kB / 489.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3351, allocations: 0 / 489.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.803e-05/0.3352, allocations: 23.97 kB / 490 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3352, allocations: 0 / 490 MB, free: 10.08 MB / 362.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 6.416e-05/0.3353, allocations: 117.8 kB / 490.1 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.3353, allocations: 8 kB / 490.1 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003752/0.3357, allocations: 153.4 kB / 490.2 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.3357, allocations: 0 / 490.2 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3357, allocations: 4 kB / 490.2 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3357, allocations: 0 / 490.2 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.3359, allocations: 193.5 kB / 490.4 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3359, allocations: 0 / 490.4 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.336, allocations: 31.97 kB / 490.5 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.336, allocations: 4 kB / 490.5 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.336, allocations: 448 / 490.5 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.336, allocations: 3.938 kB / 490.5 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.336, allocations: 0 / 490.5 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003655/0.3364, allocations: 243.3 kB / 490.7 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.3365, allocations: 89.02 kB / 490.8 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.3365, allocations: 0 / 490.8 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.3366, allocations: 19.98 kB / 490.8 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.117e-05/0.3366, allocations: 7.984 kB / 490.8 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.3367, allocations: 4 kB / 490.8 MB, free: 9.121 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.274e-05/0.3367, allocations: 91.58 kB / 490.9 MB, free: 9.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3367, allocations: 0 / 490.9 MB, free: 9.031 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002168/0.3369, allocations: 16 kB / 490.9 MB, free: 9.016 MB / 362.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.0001341/0.3371, allocations: 103.2 kB / 491 MB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003577/0.3374, allocations: 119.8 kB / 491.1 MB, free: 8.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3375, allocations: 0 / 491.1 MB, free: 8.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001601/0.3376, allocations: 63.95 kB / 491.2 MB, free: 8.727 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.3379, allocations: 0 / 491.2 MB, free: 8.727 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003252/0.3382, allocations: 216.2 kB / 491.4 MB, free: 8.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001857/0.3384, allocations: 0.6926 MB / 492.1 MB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.485e-05/0.3384, allocations: 11.44 kB / 492.1 MB, free: 7.75 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3384, allocations: 0 / 492.1 MB, free: 7.75 MB / 362.7 MB Notification: Performance of Templates: time 0.001928/0.3404, allocations: 0.9545 MB / 493.1 MB, free: 6.805 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_trunk_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches