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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 96.31 kB / 16.3 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 180.9 kB / 17.19 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.2 MB / 241.1 MB, free: 376 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002565/0.0002568, allocations: 5.562 kB / 300.8 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 50.42 MB / 351.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01205/0.1152, allocations: 10.96 MB / 362.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007891/0.1231, allocations: 4.224 MB / 366.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.1254, allocations: 63.75 kB / 366.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002802/0.1282, allocations: 0.7734 MB / 367.3 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0039/0.1322, allocations: 1.167 MB / 368.4 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002016/0.1342, allocations: 0.608 MB / 369 MB, free: 2.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1907/0.3249, allocations: 2.802 MB / 371.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003501/0.3285, allocations: 2.211 MB / 374.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002441/0.3309, allocations: 1.271 MB / 375.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002668/0.3336, allocations: 1.462 MB / 376.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000622/0.3343, allocations: 205.6 kB / 377 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001393/0.3357, allocations: 375.5 kB / 377.4 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006923/0.3364, allocations: 0.7156 MB / 378.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001051/0.3374, allocations: 0.7453 MB / 378.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005877/0.3433, allocations: 5.442 MB / 384.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3434, allocations: 0 / 384.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3434, allocations: 1.062 kB / 384.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001744/0.3435, allocations: 0 / 384.3 MB, free: 8.227 MB / 302.1 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.01119/0.3547, allocations: 3.736 MB / 388 MB, free: 6.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3548, allocations: 10.19 kB / 388 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001394/0.3562, allocations: 457.1 kB / 388.5 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005097/0.3613, allocations: 0.8183 MB / 389.3 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005685/0.367, allocations: 2.288 MB / 391.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/0.3673, allocations: 242.6 kB / 391.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008371/0.3681, allocations: 323.2 kB / 392.1 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008979/0.3771, allocations: 4.215 MB / 396.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-05/0.3772, allocations: 2.719 kB / 396.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003252/0.3775, allocations: 132.5 kB / 396.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/0.3777, allocations: 149.4 kB / 396.6 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006129/0.3838, allocations: 3.584 MB / 400.2 MB, free: 2.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02198/0.4058, allocations: 13.89 MB / 414.1 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006227/0.4121, allocations: 6.542 MB / 420.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005774/0.4179, allocations: 3.207 MB / 423.8 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.874e-05/0.418, allocations: 47.88 kB / 423.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=140): time 2.935e-06/0.418, allocations: 0 / 423.9 MB, free: 9.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=143): time 0.01202/0.43, allocations: 5.994 MB / 429.9 MB, free: 3.434 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.4301, allocations: 64.72 kB / 429.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00285/0.433, allocations: 1.733 MB / 431.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002593/0.4332, allocations: 49.7 kB / 431.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008997/0.4341, allocations: 1.426 MB / 433.2 MB, free: 136 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004367/0.4346, allocations: 0.4901 MB / 433.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.896e-05/0.4347, allocations: 36 kB / 433.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4348, allocations: 377.7 kB / 434 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.436, allocations: 0.6989 MB / 434.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.4375, allocations: 1.196 MB / 435.9 MB, free: 13.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.4389, allocations: 0.9237 MB / 436.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.4389, allocations: 4 kB / 436.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004376/0.4433, allocations: 2.562 MB / 439.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/0.4434, allocations: 12 kB / 439.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-05/0.4434, allocations: 16 kB / 439.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.4444, allocations: 368.3 kB / 439.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.4459, allocations: 379.4 kB / 440.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007035/0.4529, allocations: 7.789 MB / 448 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.4546, allocations: 75.95 kB / 448 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001513/0.4548, allocations: 72 kB / 448.1 MB, free: 372 kB / 350.1 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 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 191 * 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,(1,100.0%) 1,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00196/0.4567, allocations: 1.008 MB / 449.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003422/0.4571, allocations: 189.7 kB / 449.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003944/0.461, allocations: 2.34 MB / 451.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.4611, allocations: 19.95 kB / 451.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/0.4611, allocations: 8 kB / 451.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.744e-05/0.4611, allocations: 15.95 kB / 451.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009023/0.4702, allocations: 5.143 MB / 456.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.4702, allocations: 0 / 456.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008708/0.4711, allocations: 187.9 kB / 457 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001455/0.4725, allocations: 0.5325 MB / 457.6 MB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.4727, allocations: 39.05 kB / 457.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01208/0.4848, allocations: 12.21 MB / 469.8 MB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4848, allocations: 3.938 kB / 469.8 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005494/0.4903, allocations: 3.392 MB / 473.2 MB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.4914, allocations: 426.5 kB / 473.6 MB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/0.4917, allocations: 36 kB / 473.7 MB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008887/0.4926, allocations: 75.94 kB / 473.7 MB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/0.4928, allocations: 109.1 kB / 473.8 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-05/0.4929, allocations: 43.98 kB / 473.9 MB, free: 5.484 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001903/0.4949, allocations: 1.176 MB / 475 MB, free: 4.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4949, allocations: 0 / 475 MB, free: 4.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002321/0.4972, allocations: 0.5781 MB / 475.6 MB, free: 3.738 MB / 382.1 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.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,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 (idealCloser.control,idealOpener.control) * 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%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005521/0.5027, allocations: 4.404 MB / 480 MB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003668/0.5064, allocations: 2.405 MB / 482.4 MB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.5065, allocations: 0 / 482.4 MB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002602/0.5091, allocations: 1.776 MB / 484.2 MB, free: 10.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002792/0.5119, allocations: 0.5038 MB / 484.7 MB, free: 10.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0409/0.5528, allocations: 26.93 MB / 0.4997 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002087/0.5549, allocations: 2.362 MB / 0.502 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001553/0.5565, allocations: 403.4 kB / 0.5023 GB, free: 11.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/0.5579, allocations: 1.128 MB / 0.5034 GB, free: 10.43 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5579, allocations: 4 kB / 0.5035 GB, free: 10.42 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2532/0.811, allocations: 49.06 MB / 0.5514 GB, free: 145.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001615/0.8113, allocations: 248 kB / 0.5516 GB, free: 145 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.86/3.671, allocations: 0 / 0.5516 GB, free: 145 MB / 446.1 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