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.002483/0.002483, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.708/3.708, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001793/0.001793, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005969/0.0005971, allocations: 8 kB / 326.9 MB, free: 15.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2591, allocations: 47.59 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.01917/0.2783, allocations: 1.194 MB / 375.7 MB, free: 14.24 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.2799, allocations: 0.4931 MB / 376.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.029e-05/0.28, allocations: 0 / 376.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.2802, allocations: 15.92 kB / 376.2 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.828e-05/0.2803, allocations: 7.984 kB / 376.2 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.2806, allocations: 39.78 kB / 376.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.2807, allocations: 35.95 kB / 376.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.2808, allocations: 12 kB / 376.3 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001555/0.281, allocations: 23.91 kB / 376.4 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.205e-05/0.2811, allocations: 23.84 kB / 376.4 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.2812, allocations: 4 kB / 376.4 MB, free: 13.58 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.943e-05/0.2813, allocations: 15.94 kB / 376.4 MB, free: 13.56 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.947e-05/0.2813, allocations: 7.984 kB / 376.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.656e-05/0.2814, allocations: 37.64 kB / 376.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.2815, allocations: 43.91 kB / 376.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2816, allocations: 0 / 376.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.2816, allocations: 0 / 376.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.2816, allocations: 0 / 376.5 MB, free: 13.47 MB / 282.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.001157/0.2828, allocations: 379.5 kB / 376.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.491e-05/0.2828, allocations: 12.03 kB / 376.9 MB, free: 13.04 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.703e-05/0.2829, allocations: 7.906 kB / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000207/0.2831, allocations: 170.9 kB / 377 MB, free: 12.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.2832, allocations: 7.953 kB / 377 MB, free: 12.82 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.2832, allocations: 4 kB / 377.1 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006365/0.2839, allocations: 105.6 kB / 377.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2839, allocations: 0 / 377.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.284, allocations: 0 / 377.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.284, allocations: 0 / 377.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008787/0.2849, allocations: 103.9 kB / 377.3 MB, free: 12.6 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004906/0.2898, allocations: 312.8 kB / 377.6 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007171/0.2906, allocations: 78.53 kB / 377.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.2907, allocations: 4 kB / 377.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/0.2907, allocations: 34.56 kB / 377.7 MB, free: 12.11 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 4.919e-06/0.2908, allocations: 0 / 377.7 MB, free: 12.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.001501/0.2923, allocations: 185.6 kB / 377.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.2924, allocations: 51.41 kB / 377.9 MB, free: 11.86 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.2926, allocations: 121.8 kB / 378 MB, free: 11.73 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.2926, allocations: 25.7 kB / 378.1 MB, free: 11.7 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.2928, allocations: 166.4 kB / 378.2 MB, free: 11.54 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.878e-05/0.2928, allocations: 11.81 kB / 378.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.032e-05/0.2929, allocations: 0 / 378.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.2931, allocations: 318.8 kB / 378.5 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004338/0.2935, allocations: 47.95 kB / 378.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004565/0.2981, allocations: 47.97 kB / 378.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004401/0.2986, allocations: 51.89 kB / 378.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/0.2986, allocations: 0 / 378.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0009363/0.2996, allocations: 137.6 kB / 378.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/0.2996, allocations: 4 kB / 378.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.2997, allocations: 0 / 378.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.2997, allocations: 0 / 378.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.3001, allocations: 31.97 kB / 378.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.3001, allocations: 0 / 378.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.3003, allocations: 15.98 kB / 378.9 MB, free: 10.87 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.3004, allocations: 0 / 378.9 MB, free: 10.87 MB / 282.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 0.0001569/0.3005, allocations: 117.8 kB / 379 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.3006, allocations: 3.906 kB / 379 MB, free: 10.74 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.3017, allocations: 165.4 kB / 379.1 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/0.3058, allocations: 0 / 379.1 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.3058, allocations: 0 / 379.1 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3059, allocations: 0 / 379.1 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005053/0.3064, allocations: 194 kB / 379.3 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.3064, allocations: 3.984 kB / 379.3 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.3068, allocations: 27.98 kB / 379.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/0.3068, allocations: 0 / 379.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.3069, allocations: 0 / 379.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.3069, allocations: 8 kB / 379.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3069, allocations: 0 / 379.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009423/0.3079, allocations: 243.3 kB / 379.6 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.637e-05/0.308, allocations: 77.11 kB / 379.7 MB, free: 9.949 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.308, allocations: 8.375 kB / 379.7 MB, free: 9.941 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.3083, allocations: 15.98 kB / 379.7 MB, free: 9.926 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.133e-05/0.3084, allocations: 7.984 kB / 379.7 MB, free: 9.918 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.3084, allocations: 4 kB / 379.7 MB, free: 9.914 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.415e-05/0.3085, allocations: 91.2 kB / 379.8 MB, free: 9.824 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3086, allocations: 4 kB / 379.8 MB, free: 9.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004952/0.3091, allocations: 15.91 kB / 379.8 MB, free: 9.805 MB / 282.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.0001937/0.3093, allocations: 91.25 kB / 379.9 MB, free: 9.707 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005071/0.3144, allocations: 111.8 kB / 380 MB, free: 9.598 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.3144, allocations: 4 kB / 380 MB, free: 9.594 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004849/0.3149, allocations: 59.95 kB / 380.1 MB, free: 9.535 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.3154, allocations: 15.89 kB / 380.1 MB, free: 9.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007129/0.3161, allocations: 212.5 kB / 380.3 MB, free: 9.281 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.3165, allocations: 0.6926 MB / 381 MB, free: 8.562 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.229e-05/0.3167, allocations: 11.44 kB / 381 MB, free: 8.551 MB / 282.7 MB Notification: Performance of SimCode: time 2.194e-06/0.3167, allocations: 0 / 381 MB, free: 8.551 MB / 282.7 MB Notification: Performance of Templates: time 0.008673/0.3254, allocations: 0.9472 MB / 382 MB, free: 7.605 MB / 282.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