Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002237/0.002237, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009627/0.0009625, allocations: 103 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.995e-05/3.997e-05, allocations: 3.984 kB / 344 MB, free: 4.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1278, allocations: 50.41 MB / 394.4 MB, free: 1.727 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4628/0.5907, allocations: 162.7 MB / 0.544 GB, free: 4.625 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/0.5911, allocations: 103.9 kB / 0.5441 GB, free: 4.523 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.6/3.191, allocations: 0.5723 GB / 1.116 GB, free: 41.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.455e-06/3.191, allocations: 0 / 1.116 GB, free: 41.71 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.002844/3.194, allocations: 417.2 kB / 1.117 GB, free: 41.66 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.08031/3.274, allocations: 16.92 MB / 1.133 GB, free: 36.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001148/3.274, allocations: 12.22 kB / 1.133 GB, free: 36.6 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02236/3.297, allocations: 2.92 MB / 1.136 GB, free: 36.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04891/3.346, allocations: 7.826 MB / 1.144 GB, free: 35.38 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05361/3.399, allocations: 14.83 MB / 1.158 GB, free: 33.64 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002165/3.402, allocations: 1.316 MB / 1.16 GB, free: 33.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01069/3.412, allocations: 1.726 MB / 1.161 GB, free: 33.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1007/3.513, allocations: 28.84 MB / 1.189 GB, free: 21.19 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001274/3.514, allocations: 28.31 kB / 1.189 GB, free: 21.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01018/3.524, allocations: 0.7446 MB / 1.19 GB, free: 20.44 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001772/3.526, allocations: 1.266 MB / 1.191 GB, free: 19.32 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08667/3.613, allocations: 25.83 MB / 1.217 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7451/4.358, allocations: 94.31 MB / 1.309 GB, free: 27.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04578/4.404, allocations: 51.59 MB / 1.359 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01273/4.417, allocations: 7.02 MB / 1.366 GB, free: 18.91 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04413/4.461, allocations: 16.38 MB / 1.382 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001264/4.461, allocations: 113.3 kB / 1.382 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=687): time 9.418e-06/4.461, allocations: 0 / 1.382 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=695): time 0.05781/4.519, allocations: 25.73 MB / 1.407 GB, free: 0.707 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/4.519, allocations: 152.2 kB / 1.407 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01475/4.534, allocations: 6.114 MB / 1.413 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001916/4.536, allocations: 140.3 kB / 1.413 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007394/4.543, allocations: 7.747 MB / 1.421 GB, free: 8.395 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004248/4.548, allocations: 2.344 MB / 1.423 GB, free: 6.586 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001678/4.549, allocations: 192.8 kB / 1.423 GB, free: 6.438 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0009355/4.55, allocations: 0.6925 MB / 1.424 GB, free: 5.961 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00944/4.56, allocations: 4.704 MB / 1.429 GB, free: 4.121 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5285/5.088, allocations: 7.954 MB / 1.437 GB, free: 98.45 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01548/5.104, allocations: 6.423 MB / 1.443 GB, free: 98.32 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003241/5.104, allocations: 30.56 kB / 1.443 GB, free: 98.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.04908/5.153, allocations: 15.59 MB / 1.458 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001921/5.154, allocations: 51.94 kB / 1.458 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003168/5.154, allocations: 105 kB / 1.458 GB, free: 97.77 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007091/5.161, allocations: 2.445 MB / 1.461 GB, free: 97.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009753/5.171, allocations: 2.038 MB / 1.463 GB, free: 97.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03627/5.207, allocations: 28.1 MB / 1.49 GB, free: 87.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01123/5.218, allocations: 0.5352 MB / 1.491 GB, free: 87.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003312/5.222, allocations: 445.4 kB / 1.491 GB, free: 87.34 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1064): * Single equations (assignments): 1051 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(18,41.0%) 100,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003735/5.226, allocations: 0.6864 MB / 1.492 GB, free: 87.23 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002814/5.228, allocations: 0.7632 MB / 1.492 GB, free: 87.23 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02818/5.257, allocations: 12.94 MB / 1.505 GB, free: 86.29 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01622/5.273, allocations: 8.133 MB / 1.513 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.84e-05/5.273, allocations: 27.12 kB / 1.513 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002085/5.273, allocations: 35.48 kB / 1.513 GB, free: 85.98 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07601/5.349, allocations: 27.97 MB / 1.54 GB, free: 75.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.893e-05/5.349, allocations: 3.812 kB / 1.54 GB, free: 75.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005823/5.355, allocations: 1.105 MB / 1.541 GB, free: 75.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006518/5.362, allocations: 2.524 MB / 1.544 GB, free: 74.92 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001873/5.364, allocations: 151.9 kB / 1.544 GB, free: 74.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03343/5.397, allocations: 32.57 MB / 1.576 GB, free: 52.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/5.397, allocations: 3.812 kB / 1.576 GB, free: 52.05 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03439/5.432, allocations: 19.1 MB / 1.594 GB, free: 35.57 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006873/5.439, allocations: 1.77 MB / 1.596 GB, free: 33.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003566/5.442, allocations: 124 kB / 1.596 GB, free: 33.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007341/5.45, allocations: 423.3 kB / 1.597 GB, free: 33.56 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002833/5.452, allocations: 0.541 MB / 1.597 GB, free: 33.22 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002166/5.455, allocations: 193.5 kB / 1.597 GB, free: 33.04 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01433/5.469, allocations: 4.604 MB / 1.602 GB, free: 29 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.193e-06/5.469, allocations: 0 / 1.602 GB, free: 29 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01821/5.487, allocations: 3.096 MB / 1.605 GB, free: 25.92 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (567): * Single equations (assignments): 552 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(18,38.0%) 100} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03636/5.524, allocations: 21 MB / 1.625 GB, free: 7.043 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.4738/5.998, allocations: 13.19 MB / 1.638 GB, free: 94.21 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.977e-05/5.998, allocations: 1.719 kB / 1.638 GB, free: 94.21 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01933/6.017, allocations: 7.471 MB / 1.646 GB, free: 92.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01636/6.033, allocations: 1.964 MB / 1.648 GB, free: 92.77 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1187/6.152, allocations: 32.66 MB / 1.679 GB, free: 87.42 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0305/6.183, allocations: 11.65 MB / 1.691 GB, free: 86.12 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01483/6.198, allocations: 3.27 MB / 1.694 GB, free: 85.83 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0169/6.215, allocations: 6.662 MB / 1.701 GB, free: 85.83 MB / 0.5417 GB Notification: Performance of SimCode: time 1.823e-06/6.215, allocations: 0 / 1.701 GB, free: 85.83 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.345/7.559, allocations: 245.5 MB / 1.94 GB, free: 60.15 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/7.56, allocations: 222.7 kB / 1.941 GB, free: 59.93 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/18.93, allocations: 3.438 kB / 1.941 GB, free: 59.93 MB / 0.5418 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat