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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008084/0.0008085, allocations: 101 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008102/0.0008102, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002161, allocations: 4 kB / 306.8 MB, free: 1.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0978/0.09804, allocations: 51.48 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01318/0.1113, allocations: 12.55 MB / 370.9 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.203/0.3143, allocations: 4.298 MB / 375.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002319/0.3167, allocations: 77.94 kB / 375.2 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003183/0.3199, allocations: 0.7556 MB / 376 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005416/0.3253, allocations: 1.051 MB / 377 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002377/0.3277, allocations: 0.662 MB / 377.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007761/0.3355, allocations: 4.138 MB / 381.9 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00408/0.3396, allocations: 2.207 MB / 384.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003578/0.3432, allocations: 1.301 MB / 385.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00399/0.3472, allocations: 1.621 MB / 387 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008671/0.3481, allocations: 208.1 kB / 387.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002513/0.3506, allocations: 422 kB / 387.6 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.3517, allocations: 0.749 MB / 388.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.3535, allocations: 0.745 MB / 389.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006505/0.36, allocations: 5.512 MB / 394.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.36, allocations: 5.375 kB / 394.6 MB, free: 3.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.36, allocations: 0 / 394.6 MB, free: 3.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001994/0.3602, allocations: 0 / 394.6 MB, free: 3.312 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.01099/0.3712, allocations: 3.769 MB / 398.4 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.3713, allocations: 13.98 kB / 398.4 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001388/0.3727, allocations: 461.5 kB / 398.8 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004601/0.3773, allocations: 0.8306 MB / 399.7 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005219/0.3825, allocations: 2.277 MB / 401.9 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/0.3828, allocations: 248.2 kB / 402.2 MB, free: 14.4 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006765/0.3834, allocations: 317.9 kB / 402.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009071/0.3925, allocations: 4.244 MB / 406.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-05/0.3926, allocations: 11.84 kB / 406.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003252/0.393, allocations: 134.7 kB / 406.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001646/0.3931, allocations: 150.4 kB / 407 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007475/0.4006, allocations: 3.586 MB / 410.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02604/0.4267, allocations: 14.03 MB / 424.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006587/0.4334, allocations: 6.652 MB / 431.3 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/0.4358, allocations: 1.41 MB / 432.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007439/0.4433, allocations: 3.895 MB / 436.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.864e-05/0.4434, allocations: 51.86 kB / 436.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 4.027e-06/0.4434, allocations: 0 / 436.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01356/0.457, allocations: 5.954 MB / 442.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.4571, allocations: 64.72 kB / 442.7 MB, free: 5.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/0.4603, allocations: 1.789 MB / 444.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.4604, allocations: 45.7 kB / 444.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.4619, allocations: 1.447 MB / 446 MB, free: 1.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004704/0.4624, allocations: 482.5 kB / 446.4 MB, free: 1.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-05/0.4625, allocations: 39.94 kB / 446.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.4627, allocations: 369.9 kB / 446.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.4639, allocations: 0.6793 MB / 447.5 MB, free: 428 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/0.4655, allocations: 1.193 MB / 448.7 MB, free: 15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.467, allocations: 0.8965 MB / 449.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.467, allocations: 4 kB / 449.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004789/0.4718, allocations: 2.537 MB / 452.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.96e-05/0.4719, allocations: 15.98 kB / 452.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.204e-05/0.4719, allocations: 16.34 kB / 452.2 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.4731, allocations: 372 kB / 452.5 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/0.4746, allocations: 375.4 kB / 452.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008415/0.483, allocations: 7.666 MB / 460.6 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.4847, allocations: 83.86 kB / 460.6 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.4848, allocations: 76.09 kB / 460.7 MB, free: 2.402 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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 (192): * Single equations (assignments): 187 * 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.002012/0.4868, allocations: 1.005 MB / 461.7 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003407/0.4872, allocations: 197.6 kB / 461.9 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0042/0.4914, allocations: 2.29 MB / 464.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.4914, allocations: 20 kB / 464.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.4914, allocations: 8.188 kB / 464.2 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/0.4914, allocations: 11.92 kB / 464.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008176/0.4996, allocations: 5.079 MB / 469.3 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.4997, allocations: 2.516 kB / 469.3 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007849/0.5005, allocations: 179.8 kB / 469.5 MB, free: 9.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001419/0.5019, allocations: 0.5275 MB / 470 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.683e-05/0.502, allocations: 35.98 kB / 470.1 MB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01204/0.514, allocations: 12.1 MB / 482.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.5141, allocations: 8.125 kB / 482.2 MB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00543/0.5195, allocations: 3.209 MB / 485.4 MB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.5207, allocations: 430.5 kB / 485.8 MB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002931/0.521, allocations: 31.98 kB / 485.8 MB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008375/0.5219, allocations: 71.95 kB / 485.9 MB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002751/0.5221, allocations: 117.1 kB / 486 MB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.267e-05/0.5222, allocations: 39.98 kB / 486.1 MB, free: 7.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00194/0.5242, allocations: 1.216 MB / 487.3 MB, free: 6.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5242, allocations: 0 / 487.3 MB, free: 6.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002319/0.5265, allocations: 0.586 MB / 487.9 MB, free: 6.188 MB / 398.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 (86): * Single equations (assignments): 80 * 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%) 13,(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.005279/0.5318, allocations: 3.842 MB / 491.7 MB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003719/0.5356, allocations: 2.348 MB / 494 MB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.5356, allocations: 0 / 494 MB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002562/0.5381, allocations: 1.728 MB / 495.8 MB, free: 14.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.5409, allocations: 0.5325 MB / 496.3 MB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03503/0.5759, allocations: 16.79 MB / 0.5011 GB, free: 11.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002388/0.5784, allocations: 2.319 MB / 0.5033 GB, free: 9.312 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001774/0.5802, allocations: 405.2 kB / 0.5037 GB, free: 8.914 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/0.5818, allocations: 1.136 MB / 0.5048 GB, free: 7.777 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.5818, allocations: 0 / 0.5048 GB, free: 7.777 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2963/0.8781, allocations: 49.85 MB / 0.5535 GB, free: 138.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.8783, allocations: 254.4 kB / 0.5537 GB, free: 138.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.216/4.094, allocations: 4 kB / 0.5537 GB, free: 138.2 MB / 446.1 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