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.0008991/0.0008991, allocations: 95.48 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009732/0.0009733, allocations: 200.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002211/0.0002211, allocations: 4 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.107, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.01227/0.1193, allocations: 10.88 MB / 369.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2048/0.3242, allocations: 4.241 MB / 373.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002333/0.3265, allocations: 69.19 kB / 373.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002831/0.3294, allocations: 0.7823 MB / 374.2 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005201/0.3346, allocations: 1.162 MB / 375.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0025/0.3371, allocations: 0.6103 MB / 375.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007208/0.3444, allocations: 2.802 MB / 378.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005017/0.3494, allocations: 2.229 MB / 381 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003751/0.3532, allocations: 1.248 MB / 382.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004089/0.3573, allocations: 1.48 MB / 383.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001566/0.3589, allocations: 204.8 kB / 383.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003606/0.3626, allocations: 397.2 kB / 384.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002437/0.365, allocations: 0.7407 MB / 385 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003076/0.3681, allocations: 0.7385 MB / 385.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009269/0.3774, allocations: 5.526 MB / 391.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3775, allocations: 0 / 391.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.3775, allocations: 0 / 391.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003011/0.3778, allocations: 1.25 kB / 391.3 MB, free: 5.973 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.01436/0.3922, allocations: 3.778 MB / 395.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.3922, allocations: 9.625 kB / 395.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00196/0.3942, allocations: 453.1 kB / 395.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005442/0.3997, allocations: 0.8478 MB / 396.4 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005982/0.4057, allocations: 2.333 MB / 398.7 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.4059, allocations: 239.9 kB / 398.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001033/0.4069, allocations: 319.4 kB / 399.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0107/0.4177, allocations: 4.207 MB / 403.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.453e-05/0.4178, allocations: 8 kB / 403.5 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003409/0.4181, allocations: 127 kB / 403.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001625/0.4183, allocations: 150.2 kB / 403.7 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007058/0.4254, allocations: 3.655 MB / 407.4 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02349/0.4489, allocations: 13.6 MB / 421 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005992/0.4549, allocations: 6.875 MB / 427.9 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006429/0.4614, allocations: 3.484 MB / 431.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.333e-05/0.4614, allocations: 51.81 kB / 431.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=130): time 2.976e-06/0.4615, allocations: 0 / 431.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=150): time 0.01516/0.4766, allocations: 6.788 MB / 438.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.4767, allocations: 68.66 kB / 438.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003253/0.48, allocations: 1.817 MB / 440.1 MB, free: 8.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002389/0.4803, allocations: 53.7 kB / 440.1 MB, free: 8.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009549/0.4812, allocations: 1.427 MB / 441.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000462/0.4817, allocations: 0.5044 MB / 442.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.629e-05/0.4818, allocations: 36 kB / 442.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4819, allocations: 377.8 kB / 442.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.4832, allocations: 0.7847 MB / 443.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.4847, allocations: 1.219 MB / 444.5 MB, free: 3.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.4862, allocations: 0.998 MB / 445.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.4862, allocations: 4 kB / 445.5 MB, free: 2.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.004688/0.4909, allocations: 2.696 MB / 448.2 MB, free: 284 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.491, allocations: 12 kB / 448.2 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/0.491, allocations: 15.95 kB / 448.2 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.4923, allocations: 0.4978 MB / 448.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.4938, allocations: 391.5 kB / 449.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007914/0.5017, allocations: 6.533 MB / 455.6 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.5036, allocations: 96.03 kB / 455.7 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001801/0.5038, allocations: 75.98 kB / 455.8 MB, free: 8.395 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (184): * Single equations (assignments): 182 * 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,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002131/0.5059, allocations: 1.048 MB / 456.8 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004557/0.5064, allocations: 197.6 kB / 457 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004329/0.5107, allocations: 2.555 MB / 459.6 MB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/0.5107, allocations: 16 kB / 459.6 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.5107, allocations: 4 kB / 459.6 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.5108, allocations: 11.97 kB / 459.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009003/0.5198, allocations: 5.605 MB / 465.2 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.5198, allocations: 4.188 kB / 465.2 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.5208, allocations: 239.7 kB / 465.4 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.5221, allocations: 487.9 kB / 465.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.5222, allocations: 39.98 kB / 466 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00945/0.5316, allocations: 10.57 MB / 476.5 MB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5317, allocations: 0 / 476.5 MB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005458/0.5371, allocations: 3.749 MB / 480.3 MB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/0.5384, allocations: 462.5 kB / 480.7 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00031/0.5387, allocations: 31.95 kB / 480.8 MB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000903/0.5397, allocations: 79.89 kB / 480.8 MB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002843/0.5399, allocations: 109.1 kB / 480.9 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.055e-05/0.54, allocations: 39.98 kB / 481 MB, free: 14.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001946/0.542, allocations: 1.255 MB / 482.2 MB, free: 12.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.542, allocations: 0 / 482.2 MB, free: 12.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00215/0.5442, allocations: 0.5898 MB / 482.8 MB, free: 12.32 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 (108): * Single equations (assignments): 103 * 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%) 12,(1,100.0%) 1,(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.005522/0.5497, allocations: 4.782 MB / 487.6 MB, free: 7.426 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003902/0.5536, allocations: 2.438 MB / 490 MB, free: 4.961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.533e-06/0.5537, allocations: 0 / 490 MB, free: 4.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002433/0.5561, allocations: 1.75 MB / 491.8 MB, free: 3.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/0.5585, allocations: 0.4936 MB / 492.3 MB, free: 2.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04017/0.5987, allocations: 26.25 MB / 0.5064 GB, free: 7.297 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002645/0.6014, allocations: 2.433 MB / 0.5088 GB, free: 4.836 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001742/0.6031, allocations: 421 kB / 0.5092 GB, free: 4.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00161/0.6048, allocations: 1.151 MB / 0.5103 GB, free: 3.27 MB / 430.1 MB Notification: Performance of SimCode: time 3.126e-06/0.6048, allocations: 0 / 0.5103 GB, free: 3.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3909/0.9957, allocations: 51.17 MB / 0.5603 GB, free: 128.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/0.996, allocations: 257.7 kB / 0.5605 GB, free: 127.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.009/4.005, allocations: 0 / 0.5605 GB, free: 127.9 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