Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.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 3.2.3+maint.om/package.mo", uses=false) 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 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,fileNamePrefix="Modelica_3_2_3_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_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 114.5 kB / 17.73 MB, free: 5.332 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.001397/0.001397, allocations: 187 kB / 18.66 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001714, allocations: 47.92 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09261/0.09434, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.2058/0.3002, allocations: 10.46 MB / 385.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009667/0.3099, allocations: 6.312 MB / 391.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002243/0.3122, allocations: 40.56 kB / 391.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.3134, allocations: 484.3 kB / 391.9 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003368/0.3168, allocations: 0.9003 MB / 392.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006484/0.3233, allocations: 2.506 MB / 395.3 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00634/0.3297, allocations: 3.474 MB / 398.8 MB, free: 84 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.331, allocations: 0.7558 MB / 399.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002248/0.3333, allocations: 1.289 MB / 400.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00251/0.3358, allocations: 1.464 MB / 402.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006196/0.3365, allocations: 327.8 kB / 402.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001475/0.3379, allocations: 0.5668 MB / 403.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000699/0.3387, allocations: 0.7432 MB / 404 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.3401, allocations: 1.402 MB / 405.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00374/0.3438, allocations: 3.927 MB / 409.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3438, allocations: 0 / 409.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3439, allocations: 0 / 409.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.653e-05/0.3439, allocations: 1.031 kB / 409.3 MB, free: 9.676 MB / 334.1 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.007664/0.3516, allocations: 3.085 MB / 412.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.3517, allocations: 8.812 kB / 412.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00036/0.352, allocations: 276.8 kB / 412.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006119/0.3526, allocations: 277.8 kB / 412.9 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/0.355, allocations: 1.372 MB / 414.3 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002061/0.3552, allocations: 242.5 kB / 414.5 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004976/0.3557, allocations: 240.3 kB / 414.8 MB, free: 5.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003642/0.3594, allocations: 2.164 MB / 416.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.122e-05/0.3594, allocations: 5.281 kB / 416.9 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001754/0.3596, allocations: 82.97 kB / 417 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.405e-05/0.3597, allocations: 47 kB / 417.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003673/0.3634, allocations: 1.922 MB / 419 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01127/0.3746, allocations: 7.778 MB / 426.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003374/0.378, allocations: 2.085 MB / 428.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002714/0.3808, allocations: 1.578 MB / 430.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.354e-05/0.3809, allocations: 33.92 kB / 430.5 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.952e-05/0.3809, allocations: 60.56 kB / 430.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=208): time 3.616e-06/0.381, allocations: 0 / 430.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=250): time 0.0562/0.4372, allocations: 14.07 MB / 444.6 MB, free: 9.328 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001763/0.4374, allocations: 393.8 kB / 445 MB, free: 8.855 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.4398, allocations: 1.506 MB / 446.5 MB, free: 7.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000379/0.4402, allocations: 73.7 kB / 446.6 MB, free: 7.262 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006794/0.4409, allocations: 0.8236 MB / 447.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009366/0.4419, allocations: 0.8393 MB / 448.2 MB, free: 5.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001/0.4429, allocations: 412.5 kB / 448.6 MB, free: 5.168 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.264e-05/0.443, allocations: 305.1 kB / 448.9 MB, free: 4.867 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.4452, allocations: 0.9885 MB / 449.9 MB, free: 3.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00236/0.4475, allocations: 1.264 MB / 451.2 MB, free: 2.543 MB / 366.1 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.0338/0.4814, allocations: 9.429 MB / 460.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.4814, allocations: 0 / 460.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.006604/0.488, allocations: 2.94 MB / 463.5 MB, free: 5.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.4881, allocations: 11.94 kB / 463.6 MB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.278e-05/0.4881, allocations: 8 kB / 463.6 MB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009793/0.4891, allocations: 360.9 kB / 463.9 MB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/0.4918, allocations: 0.5422 MB / 464.5 MB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00931/0.5011, allocations: 10.94 MB / 475.4 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002838/0.504, allocations: 120 kB / 475.5 MB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005845/0.5046, allocations: 87.95 kB / 475.6 MB, free: 9.078 MB / 398.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: transformer.winding13.i = transformer.I1Start[3] transformer.H[2] = transformer.HStart[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 9 (diode6.off,diode5.off,diode4.off,diode3.off,diode2.off,diode1.off,transformer.core3.asc,transformer.core2.asc,transformer.core1.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 247 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,6), (2,6), (2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.001566/0.5062, allocations: 461.4 kB / 476 MB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008792/0.507, allocations: 213.4 kB / 476.3 MB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009275/0.5163, allocations: 3.457 MB / 479.7 MB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.668e-05/0.5164, allocations: 35.94 kB / 479.7 MB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.5164, allocations: 4 kB / 479.8 MB, free: 4.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-05/0.5165, allocations: 11.95 kB / 479.8 MB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/0.5317, allocations: 6.27 MB / 486 MB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.5318, allocations: 8.109 kB / 486 MB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00212/0.5339, allocations: 427.4 kB / 486.5 MB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005824/0.5397, allocations: 1.194 MB / 487.7 MB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003233/0.5401, allocations: 63.97 kB / 487.7 MB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02139/0.5615, allocations: 18.89 MB / 0.4947 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.5615, allocations: 0 / 0.4947 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/0.573, allocations: 4.928 MB / 0.4995 GB, free: 3.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001371/0.5744, allocations: 0.5334 MB / 0.5001 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006569/0.5751, allocations: 56 kB / 0.5001 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002193/0.5773, allocations: 131.9 kB / 0.5002 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005438/0.5779, allocations: 205.7 kB / 0.5004 GB, free: 2.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001873/0.578, allocations: 75.92 kB / 0.5005 GB, free: 2.484 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001621/0.5797, allocations: 1.045 MB / 0.5015 GB, free: 1.441 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5797, allocations: 0 / 0.5015 GB, free: 1.441 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003177/0.5829, allocations: 0.6875 MB / 0.5022 GB, free: 0.7539 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (transformer.core1.Hstat,transformer.core1.B,transformer.core2.Hstat,transformer.core2.B,transformer.core3.Hstat,transformer.core3.B,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(1,8), (1,8), (1,8), (2,6), (2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01161/0.5945, allocations: 5.627 MB / 0.5077 GB, free: 11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0065/0.601, allocations: 3.36 MB / 0.511 GB, free: 7.512 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/0.6011, allocations: 4 kB / 0.511 GB, free: 7.508 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004351/0.6054, allocations: 2.605 MB / 0.5135 GB, free: 4.781 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003366/0.6088, allocations: 386.8 kB / 0.5139 GB, free: 4.406 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03738/0.6462, allocations: 19.45 MB / 0.5329 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00156/0.6478, allocations: 1.557 MB / 0.5344 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001461/0.6493, allocations: 291.8 kB / 0.5347 GB, free: 14.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001488/0.6508, allocations: 0.9054 MB / 0.5356 GB, free: 13.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.734e-06/0.6509, allocations: 0 / 0.5356 GB, free: 13.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3166/0.9675, allocations: 59.42 MB / 0.5936 GB, free: 132.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/16.78, allocations: 13.27 kB / 0.5936 GB, free: 132.2 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_ThreePhaseTransformerWithRectifier.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1)