Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") [: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.0009751/0.0009751, allocations: 182.4 kB / 8.137 MB, free: 2.184 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.139/1.139, allocations: 221.4 MB / 230 MB, free: 3.234 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.0009055/0.0009055, allocations: 94.11 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.622e-06/6.752e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.1972, allocations: 50.39 MB / 386.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.085/0.2822, allocations: 79.92 MB / 466.8 MB, free: 6.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001809/0.2824, allocations: 75.91 kB / 466.9 MB, free: 6.793 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02147/0.3039, allocations: 8.108 MB / 475 MB, free: 14.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.957e-05/0.304, allocations: 11.94 kB / 475 MB, free: 14.67 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001014/0.305, allocations: 0.7362 MB / 475.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.305, allocations: 8.031 kB / 475.8 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.712e-05/0.3051, allocations: 67.19 kB / 475.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.3056, allocations: 346.7 kB / 476.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.3056, allocations: 12 kB / 476.2 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/0.3056, allocations: 36 kB / 476.2 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004719/0.3061, allocations: 273.9 kB / 476.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005897/0.3067, allocations: 381.4 kB / 476.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.3067, allocations: 7.938 kB / 476.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.3068, allocations: 0 / 476.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.3068, allocations: 12.84 kB / 476.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.3093, allocations: 1.617 MB / 478.5 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002582/0.3095, allocations: 188.2 kB / 478.7 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.3097, allocations: 117.7 kB / 478.8 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.3098, allocations: 4 kB / 478.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.3098, allocations: 38.55 kB / 478.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.482e-06/0.3098, allocations: 0 / 478.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001246/0.311, allocations: 0.7079 MB / 479.5 MB, free: 9.875 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.3111, allocations: 81.11 kB / 479.6 MB, free: 9.777 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003258/0.3114, allocations: 301.9 kB / 479.9 MB, free: 9.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.3115, allocations: 33.64 kB / 479.9 MB, free: 9.441 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3116, allocations: 255.4 kB / 480.2 MB, free: 9.184 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.3117, allocations: 106.5 kB / 480.3 MB, free: 9.078 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.394e-05/0.3117, allocations: 0 / 480.3 MB, free: 9.078 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3118, allocations: 350.7 kB / 480.6 MB, free: 8.727 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.312, allocations: 76.88 kB / 480.7 MB, free: 8.652 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.3122, allocations: 166 kB / 480.9 MB, free: 8.453 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.3123, allocations: 104.8 kB / 481 MB, free: 8.352 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.3124, allocations: 4.844 kB / 481 MB, free: 8.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000634/0.313, allocations: 376.5 kB / 481.4 MB, free: 7.973 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.313, allocations: 8.25 kB / 481.4 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.313, allocations: 11.91 kB / 481.4 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003102/0.3134, allocations: 77.66 kB / 481.5 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.3137, allocations: 83.89 kB / 481.5 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/0.3158, allocations: 2.731 MB / 484.3 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.3161, allocations: 23.91 kB / 484.3 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.726e-05/0.3161, allocations: 16.06 kB / 484.3 MB, free: 4.789 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.838e-05/0.3162, allocations: 105.9 kB / 484.4 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.216e-05/0.3163, allocations: 39.53 kB / 484.4 MB, free: 4.641 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.104e-05/0.3164, allocations: 47.03 kB / 484.5 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.3164, allocations: 7.906 kB / 484.5 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3164, allocations: 0 / 484.5 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3164, allocations: 4 kB / 484.5 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.3175, allocations: 0.8079 MB / 485.3 MB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3175, allocations: 4 kB / 485.3 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.3177, allocations: 59.81 kB / 485.4 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/0.318, allocations: 81.64 kB / 485.5 MB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.318, allocations: 4.75 kB / 485.5 MB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001948/0.32, allocations: 2.726 MB / 488.2 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.32, allocations: 5.547 kB / 488.2 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000688/0.3207, allocations: 0.5663 MB / 488.8 MB, free: 16 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.3208, allocations: 120.6 kB / 488.9 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.35e-05/0.3209, allocations: 192 / 488.9 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003421/0.3212, allocations: 39.92 kB / 488.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.145e-05/0.3213, allocations: 19.97 kB / 488.9 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.3213, allocations: 11.98 kB / 488.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002168/0.3215, allocations: 236.6 kB / 489.2 MB, free: 15.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005169/0.3221, allocations: 100 kB / 489.3 MB, free: 15.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001442/0.3222, allocations: 107.2 kB / 489.4 MB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006601/0.3229, allocations: 451.8 kB / 489.8 MB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3229, allocations: 0 / 489.8 MB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.3234, allocations: 337.8 kB / 490.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.3237, allocations: 48.25 kB / 490.2 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.325, allocations: 0.6825 MB / 490.9 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/0.3255, allocations: 0.8767 MB / 491.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3255, allocations: 3.938 kB / 491.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of Templates: time 0.007899/0.3334, allocations: 3.991 MB / 495.7 MB, free: 8.945 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches