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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009849/0.000985, allocations: 185.9 kB / 8.133 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.143/1.143, allocations: 221.4 MB / 229.9 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009441/0.000944, allocations: 97.25 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.139e-06/5.179e-06, allocations: 0 / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1829, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07677/0.2597, allocations: 75.79 MB / 462.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.2599, allocations: 68.44 kB / 462.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0036/0.2636, allocations: 1.032 MB / 463.8 MB, free: 9.953 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.804e-06/0.2636, allocations: 4 kB / 463.8 MB, free: 9.949 MB / 346.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.0004172/0.264, allocations: 382.2 kB / 464.2 MB, free: 9.531 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.264, allocations: 8.031 kB / 464.2 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.189e-05/0.2641, allocations: 7.906 kB / 464.2 MB, free: 9.516 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.2642, allocations: 168 kB / 464.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.2642, allocations: 0 / 464.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.2642, allocations: 4 kB / 464.3 MB, free: 9.309 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001118/0.2644, allocations: 39.89 kB / 464.4 MB, free: 9.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.618e-05/0.2645, allocations: 50.44 kB / 464.4 MB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.2645, allocations: 3.938 kB / 464.4 MB, free: 9.211 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.2645, allocations: 6.156 kB / 464.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2645, allocations: 4 kB / 464.4 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000361/0.2649, allocations: 277.3 kB / 464.7 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.265, allocations: 42.58 kB / 464.8 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.562e-05/0.265, allocations: 27.78 kB / 464.8 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.2651, allocations: 8.031 kB / 464.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.2651, allocations: 42.45 kB / 464.8 MB, free: 8.758 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.2651, allocations: 0 / 464.8 MB, free: 8.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002068/0.2653, allocations: 54.77 kB / 464.9 MB, free: 8.699 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.2654, allocations: 55.41 kB / 464.9 MB, free: 8.633 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.926e-05/0.2654, allocations: 101 kB / 465 MB, free: 8.527 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.2655, allocations: 25.7 kB / 465.1 MB, free: 8.496 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.563e-05/0.2655, allocations: 88.05 kB / 465.1 MB, free: 8.406 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.091e-05/0.2655, allocations: 25.42 kB / 465.2 MB, free: 8.383 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-06/0.2655, allocations: 0 / 465.2 MB, free: 8.383 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.004e-05/0.2656, allocations: 314.8 kB / 465.5 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.937e-05/0.2657, allocations: 12 kB / 465.5 MB, free: 8.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.743e-05/0.2657, allocations: 16 kB / 465.5 MB, free: 8.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.274e-05/0.2657, allocations: 15.98 kB / 465.5 MB, free: 8.023 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2657, allocations: 7.875 kB / 465.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001085/0.2659, allocations: 62.48 kB / 465.6 MB, free: 7.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.2659, allocations: 7.984 kB / 465.6 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2659, allocations: 4 kB / 465.6 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.2659, allocations: 0 / 465.6 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.2661, allocations: 24.83 kB / 465.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.2661, allocations: 0 / 465.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.2662, allocations: 29.33 kB / 465.7 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/0.2662, allocations: 0 / 465.7 MB, free: 7.887 MB / 346.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 () * 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 6.264e-05/0.2663, allocations: 105 kB / 465.8 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.071e-05/0.2663, allocations: 7.906 kB / 465.8 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.2665, allocations: 89.66 kB / 465.9 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2665, allocations: 0 / 465.9 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2665, allocations: 0 / 465.9 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2665, allocations: 0.8438 kB / 465.9 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.2667, allocations: 158.1 kB / 466 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2667, allocations: 4 kB / 466 MB, free: 7.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.2668, allocations: 27.98 kB / 466 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.2668, allocations: 0 / 466 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.2668, allocations: 4.922 kB / 466 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2669, allocations: 0 / 466 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.2669, allocations: 6.969 kB / 466.1 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000151/0.267, allocations: 171.4 kB / 466.2 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.378e-05/0.2671, allocations: 85.39 kB / 466.3 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.2671, allocations: 0 / 466.3 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.2672, allocations: 19.98 kB / 466.3 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.2673, allocations: 9.109 kB / 466.3 MB, free: 7.137 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.2673, allocations: 3.938 kB / 466.3 MB, free: 7.133 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.863e-05/0.2673, allocations: 87.28 kB / 466.4 MB, free: 7.047 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002354/0.2676, allocations: 27.83 kB / 466.4 MB, free: 7.02 MB / 346.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 () * 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.0001266/0.2677, allocations: 99.25 kB / 466.5 MB, free: 6.914 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000102/0.2678, allocations: 36 kB / 466.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.2678, allocations: 0 / 466.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.756e-05/0.2679, allocations: 27.94 kB / 466.6 MB, free: 6.852 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001683/0.2681, allocations: 14.91 kB / 466.6 MB, free: 6.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002698/0.2683, allocations: 97.28 kB / 466.7 MB, free: 6.719 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.2686, allocations: 0.7036 MB / 467.4 MB, free: 5.984 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2686, allocations: 0 / 467.4 MB, free: 5.984 MB / 346.7 MB Notification: Performance of Templates: time 0.002598/0.2712, allocations: 0.7932 MB / 468.2 MB, free: 5.203 MB / 346.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/ComplexBlocks/Examples/TestConversionBlock/TestConversionBlock.csv","../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches