Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 181.4 kB / 16.39 MB, free: 5.762 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.31/1.31, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009713/0.0009715, allocations: 89.44 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002507/0.0002507, allocations: 4 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2462, allocations: 50.41 MB / 401.6 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1266/0.3727, allocations: 110.9 MB / 0.5005 GB, free: 1.516 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.3731, allocations: 103.1 kB / 0.5006 GB, free: 1.418 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3607/0.7338, allocations: 80.75 MB / 0.5795 GB, free: 34.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.7339, allocations: 0 / 0.5795 GB, free: 34.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001912/0.7341, allocations: 79.88 kB / 0.5795 GB, free: 34.23 MB / 378.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.008525/0.7426, allocations: 3.529 MB / 0.583 GB, free: 30.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.7427, allocations: 8.031 kB / 0.583 GB, free: 30.63 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001139/0.7438, allocations: 459.6 kB / 0.5834 GB, free: 30.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003844/0.7477, allocations: 0.7451 MB / 0.5842 GB, free: 29.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007607/0.7553, allocations: 3.332 MB / 0.5874 GB, free: 26.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.7554, allocations: 242.5 kB / 0.5876 GB, free: 25.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005099/0.756, allocations: 331.8 kB / 0.588 GB, free: 25.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006303/0.7623, allocations: 4.188 MB / 0.5921 GB, free: 21.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.536e-05/0.7624, allocations: 7.891 kB / 0.5921 GB, free: 21.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002808/0.7626, allocations: 136 kB / 0.5922 GB, free: 21.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.7628, allocations: 142.4 kB / 0.5923 GB, free: 20.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005123/0.7679, allocations: 3.399 MB / 0.5956 GB, free: 17.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01826/0.7862, allocations: 13.93 MB / 0.6092 GB, free: 3.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005686/0.7919, allocations: 6.555 MB / 0.6156 GB, free: 11.78 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005793/0.7977, allocations: 3.23 MB / 0.6188 GB, free: 8.465 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.057e-05/0.7978, allocations: 51.88 kB / 0.6189 GB, free: 8.402 MB / 394.7 MB Notification: Performance of pre-optimization done (n=140): time 3.106e-06/0.7978, allocations: 0 / 0.6189 GB, free: 8.402 MB / 394.7 MB Notification: Performance of matching and sorting (n=143): time 0.01224/0.8101, allocations: 6.011 MB / 0.6247 GB, free: 2.176 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.8102, allocations: 76.66 kB / 0.6248 GB, free: 2.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004118/0.8143, allocations: 1.552 MB / 0.6263 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001248/0.8144, allocations: 49.7 kB / 0.6264 GB, free: 496 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001329/0.8158, allocations: 1.435 MB / 0.6278 GB, free: 15.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/0.8162, allocations: 492.8 kB / 0.6282 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.8163, allocations: 36 kB / 0.6283 GB, free: 14.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.8165, allocations: 377.9 kB / 0.6286 GB, free: 14.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.8177, allocations: 0.691 MB / 0.6293 GB, free: 13.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/0.8193, allocations: 1.182 MB / 0.6305 GB, free: 12.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.8208, allocations: 0.9121 MB / 0.6313 GB, free: 11.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.466e-05/0.8208, allocations: 7.938 kB / 0.6314 GB, free: 11.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.00441/0.8252, allocations: 2.551 MB / 0.6338 GB, free: 8.539 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.8253, allocations: 18.88 kB / 0.6339 GB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.947e-05/0.8253, allocations: 19.98 kB / 0.6339 GB, free: 8.504 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009457/0.8263, allocations: 376 kB / 0.6342 GB, free: 8.121 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.8277, allocations: 371.4 kB / 0.6346 GB, free: 7.758 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007445/0.8352, allocations: 7.772 MB / 0.6422 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.8369, allocations: 75.95 kB / 0.6423 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002529/0.8372, allocations: 76.19 kB / 0.6423 GB, free: 15.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 189 * 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%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002511/0.8397, allocations: 1.005 MB / 0.6433 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006708/0.8404, allocations: 193.6 kB / 0.6435 GB, free: 14.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00509/0.8455, allocations: 2.356 MB / 0.6458 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.8456, allocations: 12 kB / 0.6458 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.743e-05/0.8456, allocations: 8 kB / 0.6458 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.988e-05/0.8456, allocations: 3.984 kB / 0.6458 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.8566, allocations: 5.184 MB / 0.6509 GB, free: 6.328 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.8567, allocations: 4.188 kB / 0.6509 GB, free: 6.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009002/0.8576, allocations: 187.7 kB / 0.6511 GB, free: 6.141 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001507/0.8591, allocations: 0.5359 MB / 0.6516 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/0.8593, allocations: 35.98 kB / 0.6516 GB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.263/1.122, allocations: 12.25 MB / 0.6636 GB, free: 80.33 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.122, allocations: 0.75 kB / 0.6636 GB, free: 80.33 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004758/1.127, allocations: 3.403 MB / 0.6669 GB, free: 79.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/1.128, allocations: 429.3 kB / 0.6673 GB, free: 79.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/1.128, allocations: 40.91 kB / 0.6674 GB, free: 79.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009118/1.129, allocations: 69.78 kB / 0.6674 GB, free: 79.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002752/1.13, allocations: 114.8 kB / 0.6675 GB, free: 79.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-05/1.13, allocations: 38.86 kB / 0.6676 GB, free: 79.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001747/1.132, allocations: 1.185 MB / 0.6687 GB, free: 79.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.433e-06/1.132, allocations: 0 / 0.6687 GB, free: 79.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002503/1.134, allocations: 0.6277 MB / 0.6693 GB, free: 79.53 MB / 426.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * 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%) 8,(1,100.0%) 1,(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.005263/1.139, allocations: 4.603 MB / 0.6738 GB, free: 78.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003939/1.143, allocations: 2.397 MB / 0.6762 GB, free: 77.42 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.143, allocations: 3.281 kB / 0.6762 GB, free: 77.42 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002339/1.146, allocations: 1.769 MB / 0.6779 GB, free: 76.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/1.148, allocations: 0.5026 MB / 0.6784 GB, free: 76.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02994/1.178, allocations: 26.67 MB / 0.7044 GB, free: 60.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001922/1.18, allocations: 2.366 MB / 0.7068 GB, free: 59.62 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001598/1.182, allocations: 402.3 kB / 0.7071 GB, free: 59.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.183, allocations: 1.132 MB / 0.7082 GB, free: 59.56 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/1.183, allocations: 0 / 0.7082 GB, free: 59.56 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07636/1.259, allocations: 53.02 MB / 0.76 GB, free: 33.64 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/1.26, allocations: 245.5 kB / 0.7602 GB, free: 33.37 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.674/4.933, allocations: 0 / 0.7602 GB, free: 33.37 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Steinmetz.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat