Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) [: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.001038/0.001038, allocations: 180.8 kB / 8.135 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.198/1.198, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.00102/0.00102, allocations: 100.8 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09538/0.09643, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.2749, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.3871, allocations: 113.8 MB / 0.4891 GB, free: 4.863 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.3873, allocations: 85.59 kB / 0.4892 GB, free: 4.781 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.2752/0.6625, allocations: 55.82 MB / 0.5437 GB, free: 66.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.6626, allocations: 8 kB / 0.5437 GB, free: 66.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008077/0.6634, allocations: 280.7 kB / 0.544 GB, free: 66.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002638/0.666, allocations: 1.366 MB / 0.5453 GB, free: 64.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.6662, allocations: 176.9 kB / 0.5455 GB, free: 64.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006601/0.6669, allocations: 151.8 kB / 0.5456 GB, free: 64.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002911/0.6698, allocations: 1.628 MB / 0.5472 GB, free: 63.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002703/0.6725, allocations: 1.798 MB / 0.549 GB, free: 61.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.604e-05/0.6726, allocations: 7.984 kB / 0.549 GB, free: 61.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001638/0.6728, allocations: 4 kB / 0.549 GB, free: 61.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.6728, allocations: 48 kB / 0.549 GB, free: 61.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01032/0.6831, allocations: 7.589 MB / 0.5565 GB, free: 53.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.6847, allocations: 1.173 MB / 0.5576 GB, free: 52.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/0.6864, allocations: 1.296 MB / 0.5589 GB, free: 50.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.94e-05/0.6865, allocations: 22 kB / 0.5589 GB, free: 50.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.6866, allocations: 64.5 kB / 0.5589 GB, free: 50.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=208): time 4.087e-06/0.6866, allocations: 0 / 0.5589 GB, free: 50.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=250): time 0.02867/0.7152, allocations: 9.133 MB / 0.5679 GB, free: 41.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.886e-05/0.7154, allocations: 389.8 kB / 0.5682 GB, free: 40.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.717, allocations: 1.182 MB / 0.5694 GB, free: 39.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002579/0.7173, allocations: 29.7 kB / 0.5694 GB, free: 39.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.7175, allocations: 0.5692 MB / 0.57 GB, free: 39.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005604/0.7181, allocations: 0.8042 MB / 0.5708 GB, free: 38.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.7183, allocations: 0 / 0.5708 GB, free: 38.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.7184, allocations: 402.5 kB / 0.5711 GB, free: 37.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/0.7198, allocations: 0.8756 MB / 0.572 GB, free: 37.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.7213, allocations: 1.093 MB / 0.5731 GB, free: 35.94 MB / 378.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02826/0.7496, allocations: 7.013 MB / 0.5799 GB, free: 28.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.321e-06/0.7496, allocations: 3.984 kB / 0.5799 GB, free: 28.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.02169/0.7713, allocations: 5.726 MB / 0.5855 GB, free: 23.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.7714, allocations: 4 kB / 0.5855 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-05/0.7714, allocations: 8 kB / 0.5855 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01959/0.791, allocations: 3.603 MB / 0.589 GB, free: 19.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001943/0.793, allocations: 383.5 kB / 0.5894 GB, free: 19.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03898/0.832, allocations: 23.37 MB / 0.6122 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002495/0.8345, allocations: 95.94 kB / 0.6123 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/0.835, allocations: 84.08 kB / 0.6124 GB, free: 10.43 MB / 394.7 MB Warning: Assuming redundant initial conditions for the following 2 initial equations: transformer.H[1] = $START.transformer.H[1] transformer.H[3] = $START.transformer.H[3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: transformer.core2.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: transformer.core1.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: transformer.core3.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 (transformer.core1.asc,transformer.core2.asc,transformer.core3.asc,diode1.off,diode2.off,diode3.off,diode4.off,diode5.off,diode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 180 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 6 {1 19,1 20,1 20,2 7,2 7,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006672/0.8356, allocations: 158.9 kB / 0.6126 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006195/0.8363, allocations: 201.5 kB / 0.6127 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007353/0.8436, allocations: 3.008 MB / 0.6157 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-05/0.8437, allocations: 31.91 kB / 0.6157 GB, free: 6.953 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/0.8437, allocations: 4 kB / 0.6157 GB, free: 6.949 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.428e-05/0.8437, allocations: 11.95 kB / 0.6157 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/0.8571, allocations: 5.658 MB / 0.6213 GB, free: 1.148 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/0.8571, allocations: 7.906 kB / 0.6213 GB, free: 1.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002397/0.8595, allocations: 447.4 kB / 0.6217 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005936/0.8655, allocations: 1.175 MB / 0.6228 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002675/0.8658, allocations: 27.97 kB / 0.6229 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01928/0.8851, allocations: 15.86 MB / 0.6383 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.8851, allocations: 4 kB / 0.6384 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01125/0.8964, allocations: 4.599 MB / 0.6428 GB, free: 9.828 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01328/0.9097, allocations: 6.277 MB / 0.649 GB, free: 3.402 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.9111, allocations: 0.5179 MB / 0.6495 GB, free: 2.863 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005988/0.9117, allocations: 15.94 kB / 0.6495 GB, free: 2.848 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002339/0.914, allocations: 123.9 kB / 0.6496 GB, free: 2.727 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000357/0.9144, allocations: 149.8 kB / 0.6498 GB, free: 2.578 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/0.9146, allocations: 71.97 kB / 0.6498 GB, free: 2.508 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001575/0.9162, allocations: 0.89 MB / 0.6507 GB, free: 1.617 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003869/0.9201, allocations: 0.6756 MB / 0.6514 GB, free: 0.9414 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (transformer.Phi[1],transformer.Phi[2],transformer.Phi[3],transformer.core1.Hstat,transformer.core2.Hstat,transformer.core3.Hstat,transformer.winding11.i,transformer.winding12.i,transformer.winding13.i,transformer.winding21.i,transformer.winding22.i,transformer.winding23.i,capacitor1.v,capacitor2.v,pdissStatAvg.x[1],pdissStatAvg.x[2],pdissEddyAvg.x[1],pdissEddyAvg.x[2],pdissCopAvg.x[1],pdissCopAvg.x[2],transformer.core3.MagRel,transformer.core2.MagRel,transformer.core1.MagRel) * Number of discrete variables: 9 (transformer.core1.asc,transformer.core2.asc,transformer.core3.asc,diode1.off,diode2.off,diode3.off,diode4.off,diode5.off,diode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (203): * Single equations (assignments): 194 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 6 {1 8,1 8,1 8,2 7,2 7,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007572/0.9209, allocations: 248.2 kB / 0.6516 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.117/1.038, allocations: 3.342 MB / 0.6549 GB, free: 143.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/1.038, allocations: 0 / 0.6549 GB, free: 143.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003034/1.041, allocations: 2.216 MB / 0.657 GB, free: 142.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/1.043, allocations: 227.8 kB / 0.6572 GB, free: 142.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008599/1.051, allocations: 4.41 MB / 0.6615 GB, free: 141.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001528/1.053, allocations: 1.81 MB / 0.6633 GB, free: 140.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.432e-06/1.053, allocations: 0 / 0.6633 GB, free: 140.7 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1)