Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock") translateModel(Modelica.ComplexBlocks.Examples.TestConversionBlock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2020,variableFilter="time|len.y|phi.y",fileNamePrefix="Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 111.1 kB / 17.74 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 188.2 kB / 18.67 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 47.92 kB / 351.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2647, allocations: 49.44 MB / 401.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002655/0.2674, allocations: 1.519 MB / 402.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008763/0.2683, allocations: 0.4969 MB / 403.4 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.69e-05/0.2683, allocations: 0 / 403.4 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.2685, allocations: 27.86 kB / 403.4 MB, free: 7 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.341e-05/0.2686, allocations: 7.875 kB / 403.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001806/0.2687, allocations: 39.89 kB / 403.5 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.639e-05/0.2688, allocations: 47.91 kB / 403.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.269, allocations: 16 kB / 403.5 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.2691, allocations: 43.77 kB / 403.6 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.371e-05/0.2692, allocations: 31.91 kB / 403.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.2692, allocations: 4 kB / 403.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.151e-05/0.2692, allocations: 16 kB / 403.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.01e-05/0.2693, allocations: 15.94 kB / 403.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.502e-05/0.2693, allocations: 23.86 kB / 403.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.2695, allocations: 71.72 kB / 403.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2695, allocations: 0 / 403.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2695, allocations: 4 kB / 403.7 MB, free: 6.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.2695, allocations: 0 / 403.7 MB, free: 6.684 MB / 318.1 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.0006262/0.2701, allocations: 384.5 kB / 404.1 MB, free: 6.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2702, allocations: 12.03 kB / 404.1 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.068e-05/0.2702, allocations: 4.938 kB / 404.1 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.2703, allocations: 172.2 kB / 404.3 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.2704, allocations: 8.375 kB / 404.3 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.73e-05/0.2704, allocations: 8.359 kB / 404.3 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.2707, allocations: 89.89 kB / 404.4 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2707, allocations: 0 / 404.4 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.2707, allocations: 0 / 404.4 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.83e-06/0.2707, allocations: 4 kB / 404.4 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.271, allocations: 75.92 kB / 404.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000472/0.2715, allocations: 316.6 kB / 404.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.2718, allocations: 74.53 kB / 404.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.2719, allocations: 40.95 kB / 404.9 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.272, allocations: 4 kB / 404.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.272, allocations: 30.56 kB / 404.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.272, allocations: 0 / 404.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005716/0.2726, allocations: 157.6 kB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.2726, allocations: 55.34 kB / 405.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.618e-05/0.2727, allocations: 105.8 kB / 405.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2727, allocations: 29.7 kB / 405.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.869e-05/0.2728, allocations: 92.03 kB / 405.4 MB, free: 4.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.2728, allocations: 24.12 kB / 405.4 MB, free: 4.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.2729, allocations: 17.7 kB / 405.4 MB, free: 4.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.273, allocations: 318.8 kB / 405.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.2732, allocations: 39.95 kB / 405.7 MB, free: 4.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.2733, allocations: 35.91 kB / 405.8 MB, free: 4.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.2736, allocations: 88.72 kB / 405.9 MB, free: 4.324 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2737, allocations: 0 / 405.9 MB, free: 4.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003339/0.274, allocations: 109.9 kB / 406 MB, free: 4.211 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.274, allocations: 4 kB / 406 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.274, allocations: 8 kB / 406 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.2741, allocations: 4.047 kB / 406 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.2742, allocations: 19.98 kB / 406 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2742, allocations: 0 / 406 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.618e-05/0.2743, allocations: 15.98 kB / 406 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.2743, allocations: 0 / 406 MB, free: 4.16 MB / 318.1 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 8e-05/0.2744, allocations: 117.8 kB / 406.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.767e-05/0.2744, allocations: 11.92 kB / 406.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004058/0.2749, allocations: 133.5 kB / 406.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.2749, allocations: 4 kB / 406.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2749, allocations: 0 / 406.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2749, allocations: 0 / 406.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/0.2751, allocations: 193.5 kB / 406.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2751, allocations: 0 / 406.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.2752, allocations: 23.98 kB / 406.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2752, allocations: 0 / 406.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.2753, allocations: 4 kB / 406.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.2753, allocations: 0 / 406.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2753, allocations: 0 / 406.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003991/0.2757, allocations: 223.3 kB / 406.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.2757, allocations: 85.02 kB / 406.8 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.2757, allocations: 0 / 406.8 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.2759, allocations: 19.91 kB / 406.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.387e-05/0.2759, allocations: 8 kB / 406.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.2759, allocations: 0 / 406.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.055e-05/0.276, allocations: 91.27 kB / 406.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.276, allocations: 0 / 406.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.2762, allocations: 11.94 kB / 406.9 MB, free: 3.148 MB / 318.1 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.0001233/0.2763, allocations: 104 kB / 407 MB, free: 3.039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003736/0.2767, allocations: 99.83 kB / 407.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2767, allocations: 0 / 407.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.2769, allocations: 51.91 kB / 407.2 MB, free: 2.891 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.2772, allocations: 7.984 kB / 407.2 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003657/0.2776, allocations: 179.7 kB / 407.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.2779, allocations: 0.6883 MB / 408 MB, free: 1.961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.603e-05/0.2779, allocations: 23.42 kB / 408.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2779, allocations: 0 / 408.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of Templates: time 0.002329/0.2803, allocations: 0.9675 MB / 409 MB, free: 0.9766 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.makefile (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & ./Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches