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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.002329/0.002329, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009532/0.0009532, allocations: 89.05 kB / 292.1 MB, free: 5.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.615e-05/3.617e-05, allocations: 4 kB / 351.6 MB, free: 1.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1323, allocations: 51.5 MB / 403.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4679/0.6002, allocations: 168.1 MB / 0.5579 GB, free: 2.137 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.6006, allocations: 104.6 kB / 0.558 GB, free: 2.035 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.593/4.194, allocations: 0.9034 GB / 1.461 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.186e-06/4.194, allocations: 0 / 1.461 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.003369/4.198, allocations: 479.5 kB / 1.462 GB, free: 11.48 MB / 0.5105 GB 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 1.066/5.264, allocations: 19.55 MB / 1.481 GB, free: 19.68 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.305e-05/5.264, allocations: 9.938 kB / 1.481 GB, free: 19.68 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01682/5.28, allocations: 2.953 MB / 1.484 GB, free: 19.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05582/5.336, allocations: 9.709 MB / 1.493 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05172/5.388, allocations: 16.23 MB / 1.509 GB, free: 16.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002452/5.391, allocations: 1.516 MB / 1.511 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01245/5.403, allocations: 2.002 MB / 1.513 GB, free: 16.81 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1106/5.514, allocations: 33.79 MB / 1.546 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001532/5.515, allocations: 25.36 kB / 1.546 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01152/5.527, allocations: 0.8613 MB / 1.546 GB, free: 14.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002349/5.529, allocations: 1.48 MB / 1.548 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07283/5.602, allocations: 29.55 MB / 1.577 GB, free: 11.03 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2595/5.862, allocations: 108.8 MB / 1.683 GB, free: 4.098 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5943/6.456, allocations: 50.61 MB / 1.732 GB, free: 46.05 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02019/6.476, allocations: 9.561 MB / 1.742 GB, free: 45.91 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06039/6.537, allocations: 22.85 MB / 1.764 GB, free: 44.59 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001054/6.537, allocations: 127.6 kB / 1.764 GB, free: 44.54 MB / 0.573 GB Notification: Performance of pre-optimization done (n=892): time 1.181e-05/6.537, allocations: 0 / 1.764 GB, free: 44.54 MB / 0.573 GB Notification: Performance of matching and sorting (n=904): time 0.07004/6.607, allocations: 32.68 MB / 1.796 GB, free: 38.29 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001819/6.607, allocations: 173.6 kB / 1.796 GB, free: 38.19 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01534/6.623, allocations: 7.344 MB / 1.803 GB, free: 37.6 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002087/6.625, allocations: 171.2 kB / 1.804 GB, free: 37.57 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.006234/6.631, allocations: 8.674 MB / 1.812 GB, free: 33.12 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.00484/6.636, allocations: 3.042 MB / 1.815 GB, free: 31.19 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00166/6.637, allocations: 230.2 kB / 1.815 GB, free: 31.19 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0008314/6.638, allocations: 0.7754 MB / 1.816 GB, free: 30.86 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01148/6.65, allocations: 6.003 MB / 1.822 GB, free: 30.84 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01616/6.666, allocations: 9.6 MB / 1.831 GB, free: 25.26 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01356/6.68, allocations: 8.094 MB / 1.839 GB, free: 22.14 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001587/6.68, allocations: 33.62 kB / 1.839 GB, free: 22.14 MB / 0.573 GB Notification: Performance of matching and sorting (n=1468) (initialization): time 0.03687/6.717, allocations: 19.74 MB / 1.858 GB, free: 15.18 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001852/6.717, allocations: 54.12 kB / 1.858 GB, free: 15.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002681/6.717, allocations: 115.4 kB / 1.859 GB, free: 15.18 MB / 0.573 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.002346/6.72, allocations: 0.8141 MB / 1.859 GB, free: 14.96 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009911/6.73, allocations: 2.37 MB / 1.862 GB, free: 14.88 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009275/6.739, allocations: 11.47 MB / 1.873 GB, free: 5.984 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01088/6.75, allocations: 0.5948 MB / 1.873 GB, free: 5.797 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002689/6.752, allocations: 0.5081 MB / 1.874 GB, free: 5.707 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1214): * Single equations (assignments): 1207 * 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%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004666/6.757, allocations: 0.7907 MB / 1.875 GB, free: 5.203 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003708/6.761, allocations: 0.9049 MB / 1.876 GB, free: 4.73 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03604/6.797, allocations: 16.94 MB / 1.892 GB, free: 9.863 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.166e-05/6.797, allocations: 95.06 kB / 1.892 GB, free: 9.773 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001181/6.797, allocations: 40 kB / 1.892 GB, free: 9.734 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001547/6.797, allocations: 46.59 kB / 1.892 GB, free: 9.734 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6644/7.462, allocations: 35.61 MB / 1.927 GB, free: 86.49 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001176/7.462, allocations: 6.344 kB / 1.927 GB, free: 86.49 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008093/7.47, allocations: 1.416 MB / 1.929 GB, free: 86.49 MB / 0.5887 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.002711/7.473, allocations: 0.8531 MB / 1.929 GB, free: 86.43 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002178/7.475, allocations: 202.2 kB / 1.93 GB, free: 86.43 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01589/7.491, allocations: 15.67 MB / 1.945 GB, free: 77.33 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.428e-06/7.491, allocations: 8.625 kB / 1.945 GB, free: 77.33 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05246/7.543, allocations: 25.4 MB / 1.97 GB, free: 74.68 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008968/7.552, allocations: 2.251 MB / 1.972 GB, free: 74.58 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004228/7.557, allocations: 177.6 kB / 1.972 GB, free: 74.58 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008237/7.565, allocations: 0.5058 MB / 1.973 GB, free: 74.58 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00261/7.568, allocations: 0.7871 MB / 1.973 GB, free: 74.57 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001115/7.569, allocations: 259.3 kB / 1.974 GB, free: 74.57 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.01352/7.582, allocations: 5.553 MB / 1.979 GB, free: 74.28 MB / 0.5887 GB Notification: Performance of sort global known variables: time 5.31e-07/7.582, allocations: 1.203 kB / 1.979 GB, free: 74.28 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.02057/7.603, allocations: 3.524 MB / 1.982 GB, free: 74.28 MB / 0.5887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,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,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (701): * Single equations (assignments): 693 * 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,(3,88.9%) 25,(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.05682/7.66, allocations: 27.72 MB / 2.009 GB, free: 70.25 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.03592/7.696, allocations: 15.61 MB / 2.025 GB, free: 68.47 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-05/7.696, allocations: 3.594 kB / 2.025 GB, free: 68.47 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.01905/7.715, allocations: 8.527 MB / 2.033 GB, free: 64.78 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02054/7.735, allocations: 2.343 MB / 2.035 GB, free: 64.2 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1222/7.858, allocations: 39.14 MB / 2.074 GB, free: 37.89 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03429/7.892, allocations: 13.46 MB / 2.087 GB, free: 27.86 MB / 0.5887 GB Notification: Performance of simCode: alias equations: time 0.02762/7.92, allocations: 3.961 MB / 2.091 GB, free: 25.27 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02449/7.944, allocations: 7.742 MB / 2.098 GB, free: 18.04 MB / 0.5887 GB Notification: Performance of SimCode: time 2.675e-06/7.944, allocations: 0 / 2.098 GB, free: 18.04 MB / 0.5887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.642/9.586, allocations: 286 MB / 2.377 GB, free: 63.59 MB / 0.6199 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/9.586, allocations: 232.1 kB / 2.378 GB, free: 63.28 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/21.79, allocations: 2.656 kB / 2.378 GB, free: 63.28 MB / 0.6199 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