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.001637/0.001637, allocations: 177.2 kB / 16.41 MB, free: 5.727 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.71/1.71, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007417/0.0007417, allocations: 86.36 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003373, allocations: 4 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2087, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001362/0.2101, allocations: 1.2 MB / 375.7 MB, free: 44.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006363/0.2107, allocations: 0.5032 MB / 376.2 MB, free: 44.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.458e-05/0.2108, allocations: 1.188 kB / 376.2 MB, free: 44.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.762e-05/0.2109, allocations: 15.92 kB / 376.3 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.623e-05/0.2109, allocations: 5.438 kB / 376.3 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000121/0.211, allocations: 38.69 kB / 376.3 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.219e-05/0.2111, allocations: 50.91 kB / 376.3 MB, free: 44.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.825e-05/0.2112, allocations: 10.89 kB / 376.4 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.221e-05/0.2113, allocations: 28.84 kB / 376.4 MB, free: 44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.124e-05/0.2114, allocations: 26.83 kB / 376.4 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.2114, allocations: 2.219 kB / 376.4 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.069e-05/0.2115, allocations: 13.14 kB / 376.4 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.318e-06/0.2115, allocations: 6.281 kB / 376.4 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.811e-05/0.2115, allocations: 31.83 kB / 376.5 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.838e-05/0.2116, allocations: 51.25 kB / 376.5 MB, free: 43.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2116, allocations: 1.156 kB / 376.5 MB, free: 43.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2116, allocations: 0 / 376.5 MB, free: 43.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.2116, allocations: 0 / 376.5 MB, free: 43.9 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.0004752/0.2121, allocations: 382.2 kB / 376.9 MB, free: 43.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.2122, allocations: 9.656 kB / 376.9 MB, free: 43.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.205e-05/0.2122, allocations: 6 kB / 376.9 MB, free: 43.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.237e-05/0.2123, allocations: 174.3 kB / 377.1 MB, free: 43.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.2123, allocations: 14.08 kB / 377.1 MB, free: 43.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.2123, allocations: 3.344 kB / 377.1 MB, free: 43.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002587/0.2126, allocations: 90.67 kB / 377.2 MB, free: 43.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.2126, allocations: 0 / 377.2 MB, free: 43.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.2126, allocations: 1.125 kB / 377.2 MB, free: 43.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.2126, allocations: 1.031 kB / 377.2 MB, free: 43.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003314/0.213, allocations: 107.1 kB / 377.3 MB, free: 43.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003001/0.2133, allocations: 307.7 kB / 377.6 MB, free: 42.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.2135, allocations: 88.56 kB / 377.7 MB, free: 42.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.2137, allocations: 52.73 kB / 377.7 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.2137, allocations: 1.156 kB / 377.7 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.13e-05/0.2137, allocations: 38.55 kB / 377.8 MB, free: 42.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.303e-06/0.2137, allocations: 0.9688 kB / 377.8 MB, free: 42.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005543/0.2143, allocations: 181.2 kB / 377.9 MB, free: 42.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.74e-05/0.2143, allocations: 52.38 kB / 378 MB, free: 42.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.649e-05/0.2144, allocations: 128.4 kB / 378.1 MB, free: 42.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.225e-06/0.2144, allocations: 25.7 kB / 378.1 MB, free: 42.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.724e-05/0.2144, allocations: 94.19 kB / 378.2 MB, free: 42.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.2144, allocations: 22.23 kB / 378.3 MB, free: 42.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.2145, allocations: 0 / 378.3 MB, free: 42.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.976e-05/0.2145, allocations: 317.5 kB / 378.6 MB, free: 42.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.2147, allocations: 48.34 kB / 378.6 MB, free: 41.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.2148, allocations: 46.33 kB / 378.7 MB, free: 41.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.215, allocations: 49.94 kB / 378.7 MB, free: 41.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.215, allocations: 0 / 378.7 MB, free: 41.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003325/0.2153, allocations: 135.5 kB / 378.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.2153, allocations: 4.969 kB / 378.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.2153, allocations: 1.094 kB / 378.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.2154, allocations: 0 / 378.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.2155, allocations: 30.23 kB / 378.9 MB, free: 41.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.2155, allocations: 0 / 378.9 MB, free: 41.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.474e-05/0.2156, allocations: 16.05 kB / 378.9 MB, free: 41.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.2156, allocations: 9.312 kB / 378.9 MB, free: 41.86 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 4.827e-05/0.2157, allocations: 112.4 kB / 379 MB, free: 41.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.2157, allocations: 11.27 kB / 379 MB, free: 41.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003817/0.2161, allocations: 151.7 kB / 379.2 MB, free: 41.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.2161, allocations: 448 / 379.2 MB, free: 41.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.2161, allocations: 5.078 kB / 379.2 MB, free: 41.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.338e-05/0.2161, allocations: 0 / 379.2 MB, free: 41.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/0.2163, allocations: 191.8 kB / 379.4 MB, free: 41.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2163, allocations: 0.9375 kB / 379.4 MB, free: 41.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.2164, allocations: 35.53 kB / 379.4 MB, free: 41.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.2164, allocations: 1.25 kB / 379.4 MB, free: 41.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.2164, allocations: 4 kB / 379.4 MB, free: 41.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2164, allocations: 1.219 kB / 379.4 MB, free: 41.4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2164, allocations: 0 / 379.4 MB, free: 41.4 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003646/0.2168, allocations: 240.3 kB / 379.6 MB, free: 41.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.2168, allocations: 87.22 kB / 379.7 MB, free: 41.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.2169, allocations: 5.062 kB / 379.7 MB, free: 41.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.217, allocations: 15.7 kB / 379.7 MB, free: 41.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.217, allocations: 11.48 kB / 379.8 MB, free: 41.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.217, allocations: 5.031 kB / 379.8 MB, free: 41.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.769e-05/0.2171, allocations: 90.06 kB / 379.8 MB, free: 41.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2171, allocations: 3.938 kB / 379.9 MB, free: 41.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000197/0.2173, allocations: 14.22 kB / 379.9 MB, free: 41.01 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 9.711e-05/0.2174, allocations: 97.67 kB / 380 MB, free: 40.92 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003567/0.2177, allocations: 107.5 kB / 380.1 MB, free: 40.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2178, allocations: 0 / 380.1 MB, free: 40.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001666/0.2179, allocations: 61.55 kB / 380.1 MB, free: 40.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.2182, allocations: 11.33 kB / 380.1 MB, free: 40.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002842/0.2185, allocations: 207.1 kB / 380.3 MB, free: 40.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.386e-05/0.2186, allocations: 0.6839 MB / 381 MB, free: 39.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.439e-05/0.2186, allocations: 10.28 kB / 381 MB, free: 39.95 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2186, allocations: 1.406 kB / 381 MB, free: 39.95 MB / 298.7 MB Notification: Performance of Templates: time 0.001961/0.2206, allocations: 0.9659 MB / 382 MB, free: 39.46 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