Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001776/0.001776, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001081/0.001081, allocations: 100.2 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.987e-05/1.987e-05, allocations: 4 kB / 343.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09796, allocations: 51.47 MB / 395.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.46, allocations: 111.2 MB / 0.4946 GB, free: 14.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.4604, allocations: 98.25 kB / 0.4947 GB, free: 14.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4688/0.9292, allocations: 83.01 MB / 0.5758 GB, free: 70.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.9293, allocations: 2.594 kB / 0.5758 GB, free: 70.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003448/0.9296, allocations: 81.05 kB / 0.5759 GB, free: 70.77 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.009699/0.9394, allocations: 3.235 MB / 0.579 GB, free: 70.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.9394, allocations: 6.688 kB / 0.579 GB, free: 70.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004309/0.9437, allocations: 0.7462 MB / 0.5798 GB, free: 70.01 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007611/0.9514, allocations: 3.339 MB / 0.583 GB, free: 69.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/0.9516, allocations: 106.1 kB / 0.5831 GB, free: 69.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009461/0.9525, allocations: 194.9 kB / 0.5833 GB, free: 69.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007074/0.9596, allocations: 3.126 MB / 0.5864 GB, free: 69.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008422/0.9681, allocations: 3.656 MB / 0.5899 GB, free: 69.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.96e-05/0.9682, allocations: 6.844 kB / 0.5899 GB, free: 69.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000336/0.9686, allocations: 3.281 kB / 0.59 GB, free: 69.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.9687, allocations: 145.5 kB / 0.5901 GB, free: 69.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02202/0.9907, allocations: 13.4 MB / 0.6032 GB, free: 66.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005324/0.9961, allocations: 6.528 MB / 0.6095 GB, free: 61.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002096/0.9982, allocations: 1.295 MB / 0.6108 GB, free: 61.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00624/1.005, allocations: 3.77 MB / 0.6145 GB, free: 60.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/1.005, allocations: 49.69 kB / 0.6145 GB, free: 60.33 MB / 442.7 MB Notification: Performance of pre-optimization done (n=132): time 3.246e-06/1.005, allocations: 0 / 0.6145 GB, free: 60.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=135): time 0.01002/1.015, allocations: 4.507 MB / 0.6189 GB, free: 59.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/1.015, allocations: 66.16 kB / 0.619 GB, free: 59.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002312/1.017, allocations: 1.279 MB / 0.6203 GB, free: 58.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001811/1.017, allocations: 26.64 kB / 0.6203 GB, free: 58.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007975/1.018, allocations: 1.454 MB / 0.6217 GB, free: 58.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004596/1.018, allocations: 460.6 kB / 0.6221 GB, free: 57.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.263e-05/1.019, allocations: 2.875 kB / 0.6221 GB, free: 57.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/1.019, allocations: 377.4 kB / 0.6225 GB, free: 57.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/1.02, allocations: 0.6056 MB / 0.6231 GB, free: 57.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/1.021, allocations: 1.094 MB / 0.6242 GB, free: 56.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/1.023, allocations: 1.033 MB / 0.6252 GB, free: 56.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/1.023, allocations: 4.719 kB / 0.6252 GB, free: 56.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.005132/1.028, allocations: 2.445 MB / 0.6276 GB, free: 55.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.596e-05/1.028, allocations: 11.78 kB / 0.6276 GB, free: 55.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.186e-05/1.028, allocations: 16.22 kB / 0.6276 GB, free: 55.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/1.03, allocations: 359.5 kB / 0.6279 GB, free: 55.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/1.031, allocations: 364.6 kB / 0.6283 GB, free: 55.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007241/1.038, allocations: 7.369 MB / 0.6355 GB, free: 49.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/1.041, allocations: 48.52 kB / 0.6355 GB, free: 49.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000424/1.041, allocations: 72.09 kB / 0.6356 GB, free: 49.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (188): * Single equations (assignments): 183 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004638/1.042, allocations: 148 kB / 0.6357 GB, free: 49.01 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005585/1.047, allocations: 2.161 MB / 0.6378 GB, free: 48.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/1.048, allocations: 175.1 kB / 0.638 GB, free: 47.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004995/1.053, allocations: 2.289 MB / 0.6402 GB, free: 46.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-05/1.053, allocations: 16.92 kB / 0.6403 GB, free: 46.95 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/1.053, allocations: 8 kB / 0.6403 GB, free: 46.95 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.052e-05/1.053, allocations: 7.359 kB / 0.6403 GB, free: 46.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009809/1.063, allocations: 4.646 MB / 0.6448 GB, free: 44.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/1.063, allocations: 8.719 kB / 0.6448 GB, free: 44.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007713/1.063, allocations: 167.4 kB / 0.645 GB, free: 44.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001364/1.065, allocations: 0.5208 MB / 0.6455 GB, free: 44.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/1.065, allocations: 22.52 kB / 0.6455 GB, free: 44.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008536/1.074, allocations: 11.59 MB / 0.6568 GB, free: 34.92 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/1.074, allocations: 8.719 kB / 0.6568 GB, free: 34.92 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005812/1.079, allocations: 3.271 MB / 0.66 GB, free: 33.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/1.081, allocations: 406.2 kB / 0.6604 GB, free: 32.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003198/1.081, allocations: 14.44 kB / 0.6604 GB, free: 32.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008701/1.082, allocations: 43.59 kB / 0.6605 GB, free: 32.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003128/1.082, allocations: 117.8 kB / 0.6606 GB, free: 32.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.511e-05/1.082, allocations: 39.64 kB / 0.6606 GB, free: 32.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001529/1.084, allocations: 0.9481 MB / 0.6616 GB, free: 32.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.084, allocations: 0 / 0.6616 GB, free: 32.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003059/1.087, allocations: 0.5462 MB / 0.6621 GB, free: 32.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,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.005687/1.093, allocations: 4.465 MB / 0.6664 GB, free: 29.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003062/1.096, allocations: 2.14 MB / 0.6685 GB, free: 28.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/1.096, allocations: 0 / 0.6685 GB, free: 28.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001954/1.098, allocations: 1.604 MB / 0.6701 GB, free: 27.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/1.1, allocations: 391.4 kB / 0.6705 GB, free: 27.49 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/1.111, allocations: 5.41 MB / 0.6758 GB, free: 25.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001663/1.113, allocations: 2.366 MB / 0.6781 GB, free: 24.09 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001442/1.114, allocations: 373.7 kB / 0.6784 GB, free: 24.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/1.116, allocations: 1.113 MB / 0.6795 GB, free: 23.1 MB / 442.7 MB Notification: Performance of SimCode: time 8.72e-07/1.116, allocations: 0 / 0.6795 GB, free: 23.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08112/1.197, allocations: 44.75 MB / 0.7232 GB, free: 10.32 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/1.197, allocations: 189.2 kB / 0.7234 GB, free: 10.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.496/4.693, allocations: 9.312 kB / 0.7234 GB, free: 10.12 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat