Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007777/0.0007777, allocations: 100.3 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.0008649/0.0008649, allocations: 192.9 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.486/1.486, allocations: 227.4 MB / 246 MB, free: 11.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002306, allocations: 8 kB / 306.8 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 51.49 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.01234/0.1136, allocations: 11.87 MB / 370.2 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1926/0.3061, allocations: 4.149 MB / 374.3 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002231/0.3084, allocations: 74.16 kB / 374.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002875/0.3113, allocations: 0.7428 MB / 375.2 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00415/0.3155, allocations: 1.043 MB / 376.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002171/0.3177, allocations: 0.6014 MB / 376.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006222/0.3239, allocations: 4.129 MB / 380.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003684/0.3276, allocations: 2.223 MB / 383.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.3305, allocations: 1.29 MB / 384.4 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003698/0.3342, allocations: 1.647 MB / 386.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008652/0.3351, allocations: 208.1 kB / 386.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002163/0.3373, allocations: 416.3 kB / 386.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008486/0.3381, allocations: 0.7689 MB / 387.5 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.3395, allocations: 0.7424 MB / 388.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005558/0.345, allocations: 5.565 MB / 393.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3451, allocations: 0 / 393.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.3451, allocations: 0 / 393.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001641/0.3452, allocations: 1.375 kB / 393.8 MB, free: 4.105 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.009982/0.3552, allocations: 3.792 MB / 397.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3553, allocations: 13.66 kB / 397.6 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001052/0.3563, allocations: 457.5 kB / 398 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004365/0.3607, allocations: 0.8478 MB / 398.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004286/0.365, allocations: 2.321 MB / 401.2 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.3652, allocations: 233 kB / 401.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005643/0.3658, allocations: 312.6 kB / 401.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007621/0.3734, allocations: 4.238 MB / 406 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.14e-05/0.3735, allocations: 3.984 kB / 406 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000313/0.3738, allocations: 134.6 kB / 406.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/0.374, allocations: 146.2 kB / 406.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006575/0.3806, allocations: 3.647 MB / 409.9 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02491/0.4055, allocations: 13.64 MB / 423.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006283/0.4118, allocations: 6.863 MB / 430.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002397/0.4142, allocations: 1.431 MB / 431.8 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006485/0.4207, allocations: 3.894 MB / 435.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.4208, allocations: 51.5 kB / 435.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 2.625e-06/0.4208, allocations: 0 / 435.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.01321/0.434, allocations: 6.736 MB / 442.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.4341, allocations: 76.61 kB / 442.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002695/0.4368, allocations: 1.864 MB / 444.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.4369, allocations: 53.7 kB / 444.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009466/0.4379, allocations: 1.432 MB / 445.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003604/0.4382, allocations: 0.4893 MB / 446.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.416e-05/0.4383, allocations: 36 kB / 446.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4385, allocations: 369.9 kB / 446.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.4397, allocations: 0.7652 MB / 447.6 MB, free: 208 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.4412, allocations: 1.216 MB / 448.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.4426, allocations: 0.9833 MB / 449.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.4427, allocations: 4 kB / 449.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.0045/0.4472, allocations: 2.667 MB / 452.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.4472, allocations: 12 kB / 452.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.342e-05/0.4472, allocations: 16 kB / 452.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.4487, allocations: 0.4902 MB / 453 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.4501, allocations: 395.3 kB / 453.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0078/0.4579, allocations: 6.401 MB / 459.8 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.4596, allocations: 75.95 kB / 459.8 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.4597, allocations: 68 kB / 459.9 MB, free: 3.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,61.2%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002082/0.4618, allocations: 1.049 MB / 460.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004183/0.4622, allocations: 201.7 kB / 461.1 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004474/0.4667, allocations: 2.516 MB / 463.7 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.4668, allocations: 15.98 kB / 463.7 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.4668, allocations: 8 kB / 463.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/0.4668, allocations: 3.984 kB / 463.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008667/0.4755, allocations: 5.543 MB / 469.2 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.4755, allocations: 4 kB / 469.2 MB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009773/0.4765, allocations: 215.9 kB / 469.4 MB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/0.4777, allocations: 499.9 kB / 469.9 MB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.4779, allocations: 39.98 kB / 470 MB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009797/0.4877, allocations: 10.47 MB / 480.4 MB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.4877, allocations: 8.094 kB / 480.5 MB, free: 14.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005667/0.4934, allocations: 3.575 MB / 484 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.4945, allocations: 458.5 kB / 484.5 MB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002581/0.4948, allocations: 28 kB / 484.5 MB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008847/0.4957, allocations: 79.94 kB / 484.6 MB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002593/0.496, allocations: 107.4 kB / 484.7 MB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.661e-05/0.496, allocations: 43.98 kB / 484.7 MB, free: 9.641 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002015/0.4981, allocations: 1.282 MB / 486 MB, free: 8.367 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4981, allocations: 4 kB / 486 MB, free: 8.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002261/0.5004, allocations: 0.5939 MB / 486.6 MB, free: 7.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005669/0.506, allocations: 4.2 MB / 490.8 MB, free: 3.473 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004078/0.5101, allocations: 2.395 MB / 493.2 MB, free: 1.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.5102, allocations: 4.125 kB / 493.2 MB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002686/0.5129, allocations: 1.723 MB / 494.9 MB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.5156, allocations: 0.5128 MB / 495.4 MB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03648/0.5521, allocations: 17.55 MB / 0.501 GB, free: 12.19 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002811/0.5549, allocations: 2.375 MB / 0.5033 GB, free: 9.785 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001785/0.5567, allocations: 417 kB / 0.5037 GB, free: 9.375 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001964/0.5587, allocations: 1.151 MB / 0.5048 GB, free: 8.223 MB / 430.1 MB Notification: Performance of SimCode: time 1.703e-06/0.5587, allocations: 0 / 0.5048 GB, free: 8.223 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2682/0.8269, allocations: 51.44 MB / 0.555 GB, free: 138.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000291/0.8273, allocations: 256.7 kB / 0.5553 GB, free: 137.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.189/4.016, allocations: 0 / 0.5553 GB, free: 137.8 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat