Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001193/0.001193, allocations: 95.81 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001479/0.00148, allocations: 208.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000239/0.0002392, allocations: 8 kB / 308.1 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1056, allocations: 51.5 MB / 359.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.2399/0.3455, allocations: 40.03 MB / 399.6 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03289/0.3784, allocations: 12.71 MB / 412.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01281/0.3912, allocations: 326.8 kB / 412.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01097/0.4022, allocations: 2.659 MB / 415.3 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01915/0.4214, allocations: 4.646 MB / 419.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01069/0.4321, allocations: 2.291 MB / 422.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.03328/0.4654, allocations: 18.67 MB / 440.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07267/0.5381, allocations: 36.16 MB / 477.1 MB, free: 5.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01617/0.5543, allocations: 8.251 MB / 485.3 MB, free: 13.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01769/0.5721, allocations: 9.276 MB / 494.6 MB, free: 4.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006231/0.5783, allocations: 1.402 MB / 496 MB, free: 2.867 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01018/0.5885, allocations: 1.8 MB / 497.8 MB, free: 1.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008303/0.5969, allocations: 4.408 MB / 0.4904 GB, free: 12.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009305/0.6062, allocations: 4.605 MB / 0.4949 GB, free: 8.02 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5651/1.171, allocations: 41.1 MB / 0.5351 GB, free: 50.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/1.171, allocations: 1.156 kB / 0.5351 GB, free: 50.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.054e-06/1.171, allocations: 0 / 0.5351 GB, free: 50.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001453/1.173, allocations: 0 / 0.5351 GB, free: 50.3 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.07527/1.248, allocations: 23.07 MB / 0.5576 GB, free: 43.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/1.248, allocations: 10.75 kB / 0.5576 GB, free: 43.57 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01212/1.26, allocations: 2.982 MB / 0.5605 GB, free: 43.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07316/1.334, allocations: 13.93 MB / 0.5741 GB, free: 38.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03501/1.369, allocations: 14.39 MB / 0.5882 GB, free: 31.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00162/1.37, allocations: 1.57 MB / 0.5897 GB, free: 30.47 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008404/1.379, allocations: 2.074 MB / 0.5917 GB, free: 29.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08733/1.466, allocations: 34.4 MB / 0.6253 GB, free: 4.945 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009913/1.467, allocations: 23.8 kB / 0.6253 GB, free: 4.922 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006804/1.474, allocations: 0.8536 MB / 0.6262 GB, free: 4.086 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001019/1.475, allocations: 1.153 MB / 0.6273 GB, free: 2.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0698/1.545, allocations: 32.19 MB / 0.6587 GB, free: 2.73 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4866/2.031, allocations: 108.5 MB / 0.7647 GB, free: 153.6 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03993/2.071, allocations: 50.79 MB / 0.8143 GB, free: 118.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0443/2.116, allocations: 21.82 MB / 0.8356 GB, free: 115.1 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.347e-05/2.116, allocations: 141.8 kB / 0.8358 GB, free: 115 MB / 0.545 GB Notification: Performance of pre-optimization done (n=906): time 9.988e-06/2.116, allocations: 0 / 0.8358 GB, free: 115 MB / 0.545 GB Notification: Performance of matching and sorting (n=918): time 0.07057/2.186, allocations: 39.87 MB / 0.8747 GB, free: 93.41 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.517e-05/2.187, allocations: 172.5 kB / 0.8749 GB, free: 93.22 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01154/2.198, allocations: 8.243 MB / 0.8829 GB, free: 84.99 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001752/2.2, allocations: 173.7 kB / 0.8831 GB, free: 84.81 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004627/2.204, allocations: 8.674 MB / 0.8915 GB, free: 76.09 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.004707/2.209, allocations: 3.1 MB / 0.8946 GB, free: 73.01 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/2.211, allocations: 228 kB / 0.8948 GB, free: 72.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0006071/2.211, allocations: 0.7819 MB / 0.8955 GB, free: 72 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009032/2.22, allocations: 6.269 MB / 0.9017 GB, free: 65.73 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01181/2.232, allocations: 9.942 MB / 0.9114 GB, free: 54.16 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0122/2.244, allocations: 8.342 MB / 0.9195 GB, free: 45.78 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/2.244, allocations: 36 kB / 0.9196 GB, free: 45.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=1494) (initialization): time 0.03953/2.284, allocations: 20.34 MB / 0.9394 GB, free: 25.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.345e-05/2.284, allocations: 56.97 kB / 0.9395 GB, free: 25.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001852/2.284, allocations: 120 kB / 0.9396 GB, free: 25.13 MB / 0.545 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/2.287, allocations: 0.9448 MB / 0.9405 GB, free: 24.17 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01015/2.297, allocations: 2.43 MB / 0.9429 GB, free: 21.74 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009502/2.307, allocations: 11.69 MB / 0.9543 GB, free: 9.398 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/2.319, allocations: 0.6166 MB / 0.9549 GB, free: 8.781 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002923/2.321, allocations: 0.5156 MB / 0.9554 GB, free: 8.266 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 529 * Number of states: 0 () * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1240): * Single equations (assignments): 1233 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01751/2.339, allocations: 7.92 MB / 0.9631 GB, free: 336 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3428/2.682, allocations: 0.9106 MB / 0.964 GB, free: 182 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04652/2.728, allocations: 17.16 MB / 0.9808 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001196/2.729, allocations: 91.25 kB / 0.9809 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000147/2.729, allocations: 43.44 kB / 0.9809 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002585/2.729, allocations: 52.3 kB / 0.981 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08307/2.812, allocations: 36.13 MB / 1.016 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.111e-05/2.812, allocations: 11.19 kB / 1.016 GB, free: 165 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007194/2.819, allocations: 1.453 MB / 1.018 GB, free: 164.9 MB / 0.545 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.003258/2.823, allocations: 0.961 MB / 1.019 GB, free: 164.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002231/2.825, allocations: 199.9 kB / 1.019 GB, free: 164.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0133/2.838, allocations: 15.96 MB / 1.034 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/2.838, allocations: 11.66 kB / 1.034 GB, free: 152 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04456/2.883, allocations: 26.15 MB / 1.06 GB, free: 129.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009885/2.893, allocations: 2.265 MB / 1.062 GB, free: 127.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004523/2.897, allocations: 183.7 kB / 1.062 GB, free: 127.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008509/2.906, allocations: 0.4995 MB / 1.063 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003461/2.909, allocations: 0.7991 MB / 1.064 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00202/2.911, allocations: 263.9 kB / 1.064 GB, free: 126.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01287/2.924, allocations: 5.588 MB / 1.069 GB, free: 120.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.4e-07/2.924, allocations: 0 / 1.069 GB, free: 120.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01871/2.943, allocations: 3.486 MB / 1.073 GB, free: 117.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (715): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04221/2.985, allocations: 27.99 MB / 1.1 GB, free: 89.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02526/3.011, allocations: 16.19 MB / 1.116 GB, free: 73 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/3.011, allocations: 0 / 1.116 GB, free: 73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01319/3.024, allocations: 8.824 MB / 1.124 GB, free: 64.07 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01325/3.037, allocations: 2.31 MB / 1.127 GB, free: 61.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6046/3.642, allocations: 204.4 MB / 1.326 GB, free: 63.72 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03161/3.673, allocations: 13.46 MB / 1.339 GB, free: 52.26 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01679/3.69, allocations: 4.005 MB / 1.343 GB, free: 48.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01711/3.707, allocations: 7.841 MB / 1.351 GB, free: 40.41 MB / 0.545 GB Notification: Performance of SimCode: time 1.833e-06/3.707, allocations: 4 kB / 1.351 GB, free: 40.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.455/6.162, allocations: 276.1 MB / 1.621 GB, free: 140.4 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/6.162, allocations: 304.8 kB / 1.621 GB, free: 140.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.302/14.46, allocations: 3.938 kB / 1.621 GB, free: 140.1 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat