Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 179.3 kB / 17.36 MB, free: 4.195 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.6 MB / 223.7 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007442/0.0007442, allocations: 78.39 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002961/0.0002961, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.229, allocations: 47.57 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001569/0.2306, allocations: 1.208 MB / 377.8 MB, free: 44.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007371/0.2314, allocations: 0.5812 MB / 378.4 MB, free: 44.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.188e-05/0.2314, allocations: 5 kB / 378.4 MB, free: 44.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.2316, allocations: 14.94 kB / 378.4 MB, free: 44.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.296e-05/0.2317, allocations: 4.969 kB / 378.4 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001542/0.2318, allocations: 39.38 kB / 378.4 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.484e-05/0.2319, allocations: 45.64 kB / 378.5 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.232, allocations: 23.92 kB / 378.5 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.2322, allocations: 24.67 kB / 378.5 MB, free: 44.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.141e-05/0.2322, allocations: 30.75 kB / 378.6 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.2323, allocations: 6.438 kB / 378.6 MB, free: 44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.2323, allocations: 10.06 kB / 378.6 MB, free: 44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.565e-05/0.2324, allocations: 9.047 kB / 378.6 MB, free: 44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.607e-05/0.2324, allocations: 50.88 kB / 378.6 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.2326, allocations: 64.36 kB / 378.7 MB, free: 43.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.2326, allocations: 0 / 378.7 MB, free: 43.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2326, allocations: 0 / 378.7 MB, free: 43.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.2326, allocations: 0 / 378.7 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.00055/0.2331, allocations: 381.7 kB / 379.1 MB, free: 43.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.2332, allocations: 9.469 kB / 379.1 MB, free: 43.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/0.2332, allocations: 12.12 kB / 379.1 MB, free: 43.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.125e-05/0.2333, allocations: 171.6 kB / 379.3 MB, free: 43.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.2334, allocations: 2.625 kB / 379.3 MB, free: 43.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.2334, allocations: 10.5 kB / 379.3 MB, free: 43.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.2336, allocations: 100.2 kB / 379.4 MB, free: 43.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.2337, allocations: 3.938 kB / 379.4 MB, free: 43.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.2337, allocations: 0.9375 kB / 379.4 MB, free: 43.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.2337, allocations: 1.156 kB / 379.4 MB, free: 43.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003184/0.234, allocations: 102.7 kB / 379.5 MB, free: 43.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/0.2344, allocations: 307.9 kB / 379.8 MB, free: 42.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002346/0.2346, allocations: 84.34 kB / 379.9 MB, free: 42.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.2348, allocations: 60.16 kB / 379.9 MB, free: 42.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.2348, allocations: 0.9688 kB / 379.9 MB, free: 42.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.593e-05/0.2348, allocations: 35.44 kB / 380 MB, free: 42.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/0.2348, allocations: 0.9688 kB / 380 MB, free: 42.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.000556/0.2354, allocations: 184.3 kB / 380.1 MB, free: 42.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.23e-05/0.2354, allocations: 52.59 kB / 380.2 MB, free: 42.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.459e-05/0.2355, allocations: 112.8 kB / 380.3 MB, free: 42.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.2355, allocations: 25.7 kB / 380.3 MB, free: 42.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.091e-05/0.2356, allocations: 99.14 kB / 380.4 MB, free: 42.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.2356, allocations: 14.08 kB / 380.4 MB, free: 42.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.2356, allocations: 4 kB / 380.4 MB, free: 42.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.6e-05/0.2357, allocations: 317 kB / 380.7 MB, free: 42.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.2358, allocations: 49.45 kB / 380.8 MB, free: 41.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.236, allocations: 45.81 kB / 380.8 MB, free: 41.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.2363, allocations: 107.7 kB / 380.9 MB, free: 41.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.2363, allocations: 1.156 kB / 380.9 MB, free: 41.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003268/0.2366, allocations: 136.1 kB / 381.1 MB, free: 41.85 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2366, allocations: 8.141 kB / 381.1 MB, free: 41.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2367, allocations: 1.438 kB / 381.1 MB, free: 41.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2367, allocations: 7.984 kB / 381.1 MB, free: 41.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.2368, allocations: 26.2 kB / 381.1 MB, free: 41.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.2368, allocations: 0 / 381.1 MB, free: 41.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.256e-05/0.2369, allocations: 16.77 kB / 381.1 MB, free: 41.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.2369, allocations: 1.219 kB / 381.1 MB, free: 41.83 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.418e-05/0.237, allocations: 127.9 kB / 381.3 MB, free: 41.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.31e-05/0.237, allocations: 2.438 kB / 381.3 MB, free: 41.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003721/0.2374, allocations: 155.5 kB / 381.4 MB, free: 41.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2374, allocations: 5.219 kB / 381.4 MB, free: 41.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2374, allocations: 0 / 381.4 MB, free: 41.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2374, allocations: 3.984 kB / 381.4 MB, free: 41.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.2376, allocations: 191.5 kB / 381.6 MB, free: 41.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2376, allocations: 1.5 kB / 381.6 MB, free: 41.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.2377, allocations: 27.23 kB / 381.6 MB, free: 41.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2377, allocations: 0.875 kB / 381.6 MB, free: 41.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.2377, allocations: 1.281 kB / 381.6 MB, free: 41.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.2377, allocations: 3.984 kB / 381.6 MB, free: 41.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2377, allocations: 1.312 kB / 381.6 MB, free: 41.37 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003566/0.2381, allocations: 243.5 kB / 381.9 MB, free: 41.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.884e-05/0.2381, allocations: 87.05 kB / 382 MB, free: 41.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.559e-05/0.2381, allocations: 5.141 kB / 382 MB, free: 41.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.2383, allocations: 20.02 kB / 382 MB, free: 41.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.2383, allocations: 6.406 kB / 382 MB, free: 41.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.2383, allocations: 6.266 kB / 382 MB, free: 41.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.006e-05/0.2383, allocations: 86.19 kB / 382.1 MB, free: 40.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2384, allocations: 0 / 382.1 MB, free: 40.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001957/0.2386, allocations: 13 kB / 382.1 MB, free: 40.98 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001068/0.2387, allocations: 107.8 kB / 382.2 MB, free: 40.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000356/0.239, allocations: 112.1 kB / 382.3 MB, free: 40.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.239, allocations: 3.938 kB / 382.3 MB, free: 40.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.2392, allocations: 57.58 kB / 382.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.2395, allocations: 7.453 kB / 382.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003207/0.2398, allocations: 181.6 kB / 382.6 MB, free: 40.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001235/0.2399, allocations: 0.7006 MB / 383.3 MB, free: 39.94 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.241e-05/0.24, allocations: 2.219 kB / 383.3 MB, free: 39.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.088e-05/0.24, allocations: 9.969 kB / 383.3 MB, free: 39.93 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.24, allocations: 0 / 383.3 MB, free: 39.93 MB / 298.7 MB Notification: Performance of Templates: time 0.002706/0.2427, allocations: 0.7688 MB / 384 MB, free: 39.54 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches