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.001105/0.001105, allocations: 111.2 kB / 17.74 MB, free: 5.301 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.001164/0.001164, allocations: 188.2 kB / 18.66 MB, free: 4.383 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.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 43.94 kB / 351.9 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2672, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003039/0.2703, allocations: 1.515 MB / 402.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009857/0.2713, allocations: 0.493 MB / 403.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.951e-05/0.2714, allocations: 4 kB / 403.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.2715, allocations: 19.86 kB / 403.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.26e-05/0.2716, allocations: 15.88 kB / 403.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.2718, allocations: 35.91 kB / 403.4 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000102/0.2719, allocations: 51.89 kB / 403.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.272, allocations: 23.92 kB / 403.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.2722, allocations: 35.84 kB / 403.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.887e-05/0.2723, allocations: 23.92 kB / 403.6 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.2723, allocations: 11.98 kB / 403.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.934e-05/0.2724, allocations: 15.98 kB / 403.6 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.898e-05/0.2724, allocations: 11.94 kB / 403.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.942e-05/0.2725, allocations: 31.86 kB / 403.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.2726, allocations: 71.72 kB / 403.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2726, allocations: 0 / 403.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2726, allocations: 0 / 403.7 MB, free: 6.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2727, allocations: 0 / 403.7 MB, free: 6.523 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.0006797/0.2733, allocations: 387.3 kB / 404.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.2734, allocations: 8.031 kB / 404.1 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.095e-05/0.2734, allocations: 4.938 kB / 404.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.2736, allocations: 180.2 kB / 404.3 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.2736, allocations: 8.375 kB / 404.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.2736, allocations: 384 / 404.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.2739, allocations: 93.89 kB / 404.4 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.2739, allocations: 0 / 404.4 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.2739, allocations: 4 kB / 404.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.2739, allocations: 0 / 404.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.2743, allocations: 79.92 kB / 404.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004599/0.2747, allocations: 312.6 kB / 404.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.275, allocations: 70.53 kB / 404.8 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.2751, allocations: 44.95 kB / 404.9 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.2752, allocations: 3.984 kB / 404.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.2752, allocations: 34.5 kB / 404.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.2752, allocations: 4 kB / 404.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005645/0.2758, allocations: 153.6 kB / 405.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.2758, allocations: 51.41 kB / 405.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.652e-05/0.2759, allocations: 109.8 kB / 405.2 MB, free: 4.824 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.276, allocations: 25.7 kB / 405.3 MB, free: 4.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.59e-05/0.276, allocations: 99.97 kB / 405.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.889e-05/0.2761, allocations: 16.19 kB / 405.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.929e-05/0.2761, allocations: 13.7 kB / 405.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.2763, allocations: 326.8 kB / 405.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.2764, allocations: 39.95 kB / 405.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.2766, allocations: 35.91 kB / 405.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.2768, allocations: 88.72 kB / 405.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2769, allocations: 0 / 405.9 MB, free: 4.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003314/0.2772, allocations: 109.5 kB / 406 MB, free: 4.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2772, allocations: 4 kB / 406 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.2772, allocations: 0 / 406 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.2772, allocations: 0 / 406 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.2774, allocations: 27.97 kB / 406 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.2774, allocations: 0 / 406 MB, free: 4.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.022e-05/0.2775, allocations: 15.98 kB / 406 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.2775, allocations: 448 / 406 MB, free: 4.004 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 8.878e-05/0.2776, allocations: 121.7 kB / 406.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.2776, allocations: 0 / 406.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003869/0.278, allocations: 137.5 kB / 406.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.278, allocations: 3.984 kB / 406.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.278, allocations: 4 kB / 406.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2781, allocations: 0 / 406.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/0.2782, allocations: 197.5 kB / 406.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2783, allocations: 0 / 406.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.2784, allocations: 19.98 kB / 406.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.2784, allocations: 0 / 406.5 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.2784, allocations: 4 kB / 406.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2784, allocations: 0 / 406.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.2784, allocations: 4 kB / 406.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003821/0.2788, allocations: 223.3 kB / 406.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.717e-05/0.2789, allocations: 85.02 kB / 406.8 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.2789, allocations: 4 kB / 406.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.279, allocations: 7.984 kB / 406.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.812e-05/0.279, allocations: 11.98 kB / 406.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.279, allocations: 4 kB / 406.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.636e-05/0.2791, allocations: 87.27 kB / 406.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2791, allocations: 0 / 406.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002201/0.2793, allocations: 15.94 kB / 406.9 MB, free: 2.988 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.0001372/0.2795, allocations: 104 kB / 407 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003556/0.2798, allocations: 91.84 kB / 407.1 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2799, allocations: 0 / 407.1 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001693/0.28, allocations: 55.91 kB / 407.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.2803, allocations: 3.984 kB / 407.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003548/0.2807, allocations: 187.7 kB / 407.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.281, allocations: 0.6883 MB / 408.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.357e-05/0.281, allocations: 15.44 kB / 408.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.281, allocations: 0 / 408.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of Templates: time 0.00238/0.2834, allocations: 0.9712 MB / 409 MB, free: 0.8164 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