Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00151/0.001514, allocations: 179.9 kB / 13.66 MB, free: 1.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.153/2.153, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 90.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.516e-05/3.518e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09724, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4587/0.556, allocations: 111 MB / 480.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.5563, allocations: 83.7 kB / 480.3 MB, free: 14.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2541/0.8104, allocations: 53.21 MB / 0.521 GB, free: 10.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.8105, allocations: 0 / 0.521 GB, free: 10.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002215/0.8107, allocations: 63.92 kB / 0.5211 GB, free: 10.44 MB / 410.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.009672/0.8204, allocations: 2.235 MB / 0.5233 GB, free: 8.145 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.8205, allocations: 12.03 kB / 0.5233 GB, free: 8.133 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009396/0.8215, allocations: 274.4 kB / 0.5235 GB, free: 7.855 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.8225, allocations: 276.8 kB / 0.5238 GB, free: 7.582 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004477/0.827, allocations: 1.35 MB / 0.5251 GB, free: 6.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003599/0.8274, allocations: 252.8 kB / 0.5254 GB, free: 5.914 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001307/0.8287, allocations: 227.9 kB / 0.5256 GB, free: 5.691 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006481/0.8353, allocations: 2.083 MB / 0.5276 GB, free: 3.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-05/0.8354, allocations: 4 kB / 0.5276 GB, free: 3.516 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003334/0.8357, allocations: 84 kB / 0.5277 GB, free: 3.434 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.904e-05/0.8358, allocations: 48 kB / 0.5277 GB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006316/0.8421, allocations: 1.744 MB / 0.5294 GB, free: 1.641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2941/1.136, allocations: 7.901 MB / 0.5372 GB, free: 99.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005391/1.142, allocations: 1.957 MB / 0.5391 GB, free: 99.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004108/1.146, allocations: 1.356 MB / 0.5404 GB, free: 99.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003359/1.146, allocations: 26.08 kB / 0.5404 GB, free: 99.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.715e-05/1.146, allocations: 62.45 kB / 0.5405 GB, free: 99.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=208): time 6.823e-06/1.146, allocations: 3.094 kB / 0.5405 GB, free: 99.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=250): time 0.1268/1.273, allocations: 12.64 MB / 0.5528 GB, free: 97.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/1.273, allocations: 391.6 kB / 0.5532 GB, free: 97.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005193/1.279, allocations: 1.319 MB / 0.5545 GB, free: 96.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009243/1.28, allocations: 68.36 kB / 0.5545 GB, free: 96.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/1.281, allocations: 0.7569 MB / 0.5553 GB, free: 96.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001912/1.283, allocations: 0.8295 MB / 0.5561 GB, free: 96.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004866/1.283, allocations: 48.03 kB / 0.5561 GB, free: 96.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003246/1.284, allocations: 404.5 kB / 0.5565 GB, free: 95.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004875/1.288, allocations: 0.9123 MB / 0.5574 GB, free: 95.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003477/1.292, allocations: 1.141 MB / 0.5585 GB, free: 94.76 MB / 410.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.04538/1.337, allocations: 6.723 MB / 0.5651 GB, free: 92.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/1.338, allocations: 0 / 0.5651 GB, free: 92.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.03884/1.376, allocations: 5.759 MB / 0.5707 GB, free: 91.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/1.376, allocations: 6.938 kB / 0.5707 GB, free: 91.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.336e-05/1.377, allocations: 11.75 kB / 0.5707 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03452/1.411, allocations: 3.602 MB / 0.5743 GB, free: 90.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003264/1.414, allocations: 382.4 kB / 0.5746 GB, free: 90.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06456/1.479, allocations: 24.6 MB / 0.5986 GB, free: 70.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004098/1.483, allocations: 140 kB / 0.5988 GB, free: 70.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000679/1.484, allocations: 87.25 kB / 0.5989 GB, free: 70.1 MB / 410.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: transformer.H[1] = $START.transformer.H[1] transformer.H[3] = $START.transformer.H[3]. 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.0007521/1.485, allocations: 232.5 kB / 0.5991 GB, free: 69.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008091/1.485, allocations: 209.5 kB / 0.5993 GB, free: 69.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/1.497, allocations: 3.233 MB / 0.6024 GB, free: 66.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.715e-05/1.497, allocations: 31.7 kB / 0.6025 GB, free: 66.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-05/1.497, allocations: 4 kB / 0.6025 GB, free: 66.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-05/1.497, allocations: 10.78 kB / 0.6025 GB, free: 66.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02206/1.519, allocations: 6.103 MB / 0.6084 GB, free: 61.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-05/1.519, allocations: 0 / 0.6084 GB, free: 61.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004239/1.524, allocations: 434 kB / 0.6089 GB, free: 61.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009286/1.533, allocations: 1.202 MB / 0.61 GB, free: 60.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006365/1.534, allocations: 61.91 kB / 0.6101 GB, free: 60.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02586/1.559, allocations: 16.93 MB / 0.6266 GB, free: 43.08 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/1.559, allocations: 7.781 kB / 0.6266 GB, free: 43.08 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01718/1.577, allocations: 4.785 MB / 0.6313 GB, free: 38.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001954/1.579, allocations: 0.524 MB / 0.6318 GB, free: 38.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008148/1.58, allocations: 59.23 kB / 0.6319 GB, free: 38.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00414/1.584, allocations: 159.7 kB / 0.632 GB, free: 37.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00105/1.585, allocations: 200.4 kB / 0.6322 GB, free: 37.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003447/1.585, allocations: 75.83 kB / 0.6323 GB, free: 37.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00221/1.587, allocations: 1.014 MB / 0.6333 GB, free: 36.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.587, allocations: 0 / 0.6333 GB, free: 36.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005207/1.593, allocations: 0.7708 MB / 0.634 GB, free: 36 MB / 410.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.01836/1.611, allocations: 5.706 MB / 0.6396 GB, free: 30.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009383/1.621, allocations: 3.742 MB / 0.6433 GB, free: 26.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/1.621, allocations: 384 / 0.6433 GB, free: 26.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00583/1.626, allocations: 2.497 MB / 0.6457 GB, free: 24.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/1.63, allocations: 332.5 kB / 0.646 GB, free: 24.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01601/1.646, allocations: 4.948 MB / 0.6508 GB, free: 19.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001555/1.647, allocations: 1.642 MB / 0.6524 GB, free: 18.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002367/1.65, allocations: 0.8923 MB / 0.6533 GB, free: 17.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/1.65, allocations: 4 kB / 0.6533 GB, free: 17.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.603/6.252, allocations: 112.5 MB / 0.7632 GB, free: 73.87 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1)