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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|capacitor1.v|capacitor2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|capacitor1.v|capacitor2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 117.5 kB / 16.63 MB, free: 6.812 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.001691/0.001691, allocations: 185.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009887/0.0009887, allocations: 49.14 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08273/0.08373, allocations: 49.45 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier): time 0.01055/0.09432, allocations: 10.47 MB / 360.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.1053, allocations: 6.321 MB / 366.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001854/0.1072, allocations: 39.81 kB / 366.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.1088, allocations: 389.3 kB / 366.8 MB, free: 3.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003127/0.112, allocations: 0.7879 MB / 367.6 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005248/0.1173, allocations: 2.251 MB / 369.8 MB, free: 436 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1561/0.2734, allocations: 3.439 MB / 373.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009854/0.2744, allocations: 0.7561 MB / 374 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.2761, allocations: 1.287 MB / 375.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001542/0.2776, allocations: 1.481 MB / 376.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004198/0.2781, allocations: 328.8 kB / 377.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009885/0.2791, allocations: 0.5646 MB / 377.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000563/0.2796, allocations: 0.7401 MB / 378.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001176/0.2808, allocations: 1.399 MB / 379.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003665/0.2845, allocations: 3.886 MB / 383.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.2845, allocations: 3.75 kB / 383.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2845, allocations: 3.938 kB / 383.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.463e-05/0.2846, allocations: 0 / 383.7 MB, free: 8.406 MB / 302.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.007797/0.2924, allocations: 3.066 MB / 386.8 MB, free: 6.742 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.2925, allocations: 13.16 kB / 386.8 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000606/0.2931, allocations: 278.3 kB / 387.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001914/0.295, allocations: 1.355 MB / 388.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.2952, allocations: 243.2 kB / 388.7 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005862/0.2958, allocations: 239.7 kB / 388.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003975/0.2998, allocations: 2.17 MB / 391.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/0.2999, allocations: 3.984 kB / 391.1 MB, free: 4.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001706/0.3, allocations: 81.28 kB / 391.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.645e-05/0.3001, allocations: 44.88 kB / 391.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003606/0.3037, allocations: 1.92 MB / 393.1 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01145/0.3152, allocations: 7.84 MB / 401 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003361/0.3185, allocations: 2.075 MB / 403 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002232/0.3208, allocations: 1.235 MB / 404.3 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.3209, allocations: 29.59 kB / 404.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.132e-05/0.321, allocations: 68.06 kB / 404.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=208): time 6.111e-06/0.321, allocations: 0 / 404.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=250): time 0.05779/0.3788, allocations: 14.07 MB / 418.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002354/0.3791, allocations: 392.9 kB / 418.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003455/0.3826, allocations: 1.51 MB / 420.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005793/0.3832, allocations: 77.64 kB / 420.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000805/0.384, allocations: 0.8197 MB / 421.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001136/0.3851, allocations: 0.8388 MB / 422.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001467/0.3866, allocations: 412.5 kB / 422.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.3868, allocations: 305.1 kB / 422.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002448/0.3892, allocations: 0.9922 MB / 423.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002526/0.3917, allocations: 1.252 MB / 425 MB, free: 5.688 MB / 334.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.03483/0.4266, allocations: 9.402 MB / 434.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.946e-06/0.4266, allocations: 3.984 kB / 434.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.006588/0.4332, allocations: 2.931 MB / 437.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.4333, allocations: 4 kB / 437.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.879e-05/0.4333, allocations: 8.094 kB / 437.4 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009694/0.4343, allocations: 361.8 kB / 437.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/0.4371, allocations: 0.5502 MB / 438.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009223/0.4464, allocations: 11.1 MB / 449.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002555/0.449, allocations: 127.9 kB / 449.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002171/0.4492, allocations: 83.95 kB / 449.6 MB, free: 12.2 MB / 366.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.winding12.i = transformer.I1Start[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 (256): * Single equations (assignments): 244 * 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,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.001094/0.4503, allocations: 465.9 kB / 450 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000498/0.4508, allocations: 205.6 kB / 450.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008745/0.4595, allocations: 3.46 MB / 453.7 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/0.4596, allocations: 28.06 kB / 453.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.4596, allocations: 11.98 kB / 453.7 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.557e-05/0.4596, allocations: 19.95 kB / 453.7 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.4732, allocations: 6.174 MB / 459.9 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.4732, allocations: 0 / 459.9 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002152/0.4754, allocations: 419.4 kB / 460.3 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005839/0.4812, allocations: 1.214 MB / 461.5 MB, free: 8 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003594/0.4816, allocations: 69.06 kB / 461.6 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02216/0.5038, allocations: 19.02 MB / 480.6 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.5038, allocations: 7.969 kB / 480.6 MB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/0.5152, allocations: 4.895 MB / 485.5 MB, free: 6.684 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/0.5166, allocations: 0.5333 MB / 486.1 MB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000626/0.5172, allocations: 63.92 kB / 486.1 MB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002246/0.5195, allocations: 131.9 kB / 486.3 MB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005544/0.52, allocations: 201.7 kB / 486.4 MB, free: 5.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.5202, allocations: 75.92 kB / 486.5 MB, free: 5.664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00158/0.5218, allocations: 1.041 MB / 487.6 MB, free: 4.625 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5218, allocations: 0 / 487.6 MB, free: 4.625 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002952/0.5248, allocations: 0.6951 MB / 488.3 MB, free: 3.934 MB / 398.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 (202): * Single equations (assignments): 193 * 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,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006553/0.5254, allocations: 259.2 kB / 488.5 MB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.009853/0.5353, allocations: 3.751 MB / 492.3 MB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.5353, allocations: 4 kB / 492.3 MB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004182/0.5395, allocations: 2.617 MB / 494.9 MB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002828/0.5424, allocations: 379.9 kB / 495.3 MB, free: 12.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/0.5537, allocations: 6.283 MB / 0.4898 GB, free: 6.375 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001572/0.5553, allocations: 1.565 MB / 0.4913 GB, free: 4.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001755/0.557, allocations: 299.8 kB / 0.4916 GB, free: 4.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008346/0.5579, allocations: 171.3 kB / 0.4918 GB, free: 4.309 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5579, allocations: 0 / 0.4918 GB, free: 4.309 MB / 414.1 MB Notification: Performance of Templates: time 0.2361/0.794, allocations: 38.74 MB / 0.5296 GB, free: 152.5 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.makefile (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 & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.ThreePhaseTransformerWithRectifier.pipe 2>&1)