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.0009817/0.0009816, allocations: 173.5 kB / 16.72 MB, free: 5.078 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.321/1.321, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0008393/0.000839, allocations: 82.42 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003342/0.0003342, allocations: 15.98 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2756, allocations: 47.57 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001483/0.2771, allocations: 1.197 MB / 376.3 MB, free: 44.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007783/0.2779, allocations: 0.5033 MB / 376.8 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.566e-05/0.278, allocations: 0.9688 kB / 376.8 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.788e-05/0.2781, allocations: 21.44 kB / 376.8 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.677e-05/0.2781, allocations: 5.312 kB / 376.8 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001517/0.2783, allocations: 33.98 kB / 376.8 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.083e-05/0.2784, allocations: 50.69 kB / 376.9 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.2785, allocations: 15.55 kB / 376.9 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.2786, allocations: 24.42 kB / 376.9 MB, free: 43.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.874e-05/0.2787, allocations: 23.44 kB / 376.9 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.2787, allocations: 2.188 kB / 376.9 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.996e-05/0.2788, allocations: 17.53 kB / 377 MB, free: 43.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.301e-05/0.2788, allocations: 9.266 kB / 377 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.2788, allocations: 47 kB / 377 MB, free: 43.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.279, allocations: 42.77 kB / 377.1 MB, free: 43.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.279, allocations: 1.219 kB / 377.1 MB, free: 43.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.279, allocations: 3.984 kB / 377.1 MB, free: 43.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.279, allocations: 0 / 377.1 MB, free: 43.88 MB / 298.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.0005486/0.2795, allocations: 377.5 kB / 377.4 MB, free: 43.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2796, allocations: 13.36 kB / 377.4 MB, free: 43.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.2796, allocations: 8.062 kB / 377.5 MB, free: 43.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.117e-05/0.2797, allocations: 179.8 kB / 377.6 MB, free: 43.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.2798, allocations: 5.562 kB / 377.6 MB, free: 43.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.2798, allocations: 3.281 kB / 377.6 MB, free: 43.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002767/0.2801, allocations: 99.45 kB / 377.7 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2801, allocations: 1.031 kB / 377.7 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2801, allocations: 3.938 kB / 377.7 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2801, allocations: 1 kB / 377.7 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000318/0.2804, allocations: 103.4 kB / 377.8 MB, free: 43.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003559/0.2808, allocations: 307.7 kB / 378.1 MB, free: 42.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.2811, allocations: 84.78 kB / 378.2 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.2812, allocations: 64.38 kB / 378.3 MB, free: 42.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.2813, allocations: 1.344 kB / 378.3 MB, free: 42.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.483e-05/0.2813, allocations: 30.56 kB / 378.3 MB, free: 42.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.263e-06/0.2813, allocations: 1.188 kB / 378.3 MB, free: 42.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005678/0.2819, allocations: 184.5 kB / 378.5 MB, free: 42.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/0.2819, allocations: 56.62 kB / 378.6 MB, free: 42.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.969e-05/0.282, allocations: 112 kB / 378.7 MB, free: 42.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.282, allocations: 26.86 kB / 378.7 MB, free: 42.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.167e-05/0.282, allocations: 95.36 kB / 378.8 MB, free: 42.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.812e-05/0.282, allocations: 21.14 kB / 378.8 MB, free: 42.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-06/0.282, allocations: 0 / 378.8 MB, free: 42.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.721e-05/0.2821, allocations: 315.9 kB / 379.1 MB, free: 41.99 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.2823, allocations: 49.3 kB / 379.2 MB, free: 41.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.2824, allocations: 46.47 kB / 379.2 MB, free: 41.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.2827, allocations: 105 kB / 379.3 MB, free: 41.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2827, allocations: 0 / 379.3 MB, free: 41.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000348/0.2831, allocations: 148 kB / 379.5 MB, free: 41.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2831, allocations: 7.5 kB / 379.5 MB, free: 41.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.2831, allocations: 0 / 379.5 MB, free: 41.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2831, allocations: 1.094 kB / 379.5 MB, free: 41.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.2833, allocations: 29.16 kB / 379.5 MB, free: 41.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.2833, allocations: 5.016 kB / 379.5 MB, free: 41.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.407e-05/0.2834, allocations: 15.86 kB / 379.5 MB, free: 41.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.2834, allocations: 1.125 kB / 379.5 MB, free: 41.8 MB / 298.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.311e-05/0.2835, allocations: 120 kB / 379.6 MB, free: 41.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.494e-05/0.2835, allocations: 3.375 kB / 379.6 MB, free: 41.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004066/0.2839, allocations: 159.7 kB / 379.8 MB, free: 41.58 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2839, allocations: 0 / 379.8 MB, free: 41.58 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2839, allocations: 1.281 kB / 379.8 MB, free: 41.58 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.284, allocations: 0 / 379.8 MB, free: 41.58 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.2841, allocations: 196.2 kB / 380 MB, free: 41.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2841, allocations: 0 / 380 MB, free: 41.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.2842, allocations: 24.42 kB / 380 MB, free: 41.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2842, allocations: 5.219 kB / 380 MB, free: 41.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.2842, allocations: 4 kB / 380 MB, free: 41.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2843, allocations: 1.094 kB / 380 MB, free: 41.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2843, allocations: 3.938 kB / 380 MB, free: 41.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003619/0.2846, allocations: 241.1 kB / 380.3 MB, free: 41.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.703e-05/0.2847, allocations: 82.05 kB / 380.3 MB, free: 41.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.2847, allocations: 1.125 kB / 380.3 MB, free: 41.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.2848, allocations: 28.19 kB / 380.4 MB, free: 41.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.365e-05/0.2848, allocations: 2.312 kB / 380.4 MB, free: 41.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.2849, allocations: 6.094 kB / 380.4 MB, free: 41.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.389e-05/0.2849, allocations: 90.45 kB / 380.5 MB, free: 40.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2849, allocations: 0 / 380.5 MB, free: 40.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002273/0.2851, allocations: 13.28 kB / 380.5 MB, free: 40.96 MB / 298.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.0001092/0.2852, allocations: 106.2 kB / 380.6 MB, free: 40.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003633/0.2856, allocations: 108.1 kB / 380.7 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2856, allocations: 0 / 380.7 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.2858, allocations: 56.5 kB / 380.7 MB, free: 40.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.2861, allocations: 15.52 kB / 380.8 MB, free: 40.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003356/0.2864, allocations: 199.2 kB / 380.9 MB, free: 40.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.2865, allocations: 0.6914 MB / 381.6 MB, free: 39.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.2866, allocations: 11.06 kB / 381.7 MB, free: 39.89 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2866, allocations: 4 kB / 381.7 MB, free: 39.89 MB / 298.7 MB Notification: Performance of Templates: time 0.002284/0.2889, allocations: 0.9593 MB / 382.6 MB, free: 39.4 MB / 298.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/jenkins/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