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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008502/0.00085, allocations: 86.94 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.443e-05/3.452e-05, allocations: 4 kB / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3666/0.4797, allocations: 110.6 MB / 0.5007 GB, free: 11.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.4799, allocations: 89.14 kB / 0.5008 GB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4389/0.9189, allocations: 83.75 MB / 0.5826 GB, free: 74.42 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.919, allocations: 0 / 0.5826 GB, free: 74.42 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002436/0.9192, allocations: 78.03 kB / 0.5827 GB, free: 74.41 MB / 442.7 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.009722/0.929, allocations: 3.245 MB / 0.5859 GB, free: 73.28 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/0.929, allocations: 12.09 kB / 0.5859 GB, free: 73.28 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001365/0.9304, allocations: 443.2 kB / 0.5863 GB, free: 73.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004588/0.935, allocations: 0.7742 MB / 0.5871 GB, free: 73.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/0.9465, allocations: 3.378 MB / 0.5903 GB, free: 72.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005475/0.9471, allocations: 229.9 kB / 0.5906 GB, free: 72.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001806/0.9489, allocations: 315.1 kB / 0.5909 GB, free: 72.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01114/0.9601, allocations: 4.091 MB / 0.5949 GB, free: 72.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.9602, allocations: 6.516 kB / 0.5949 GB, free: 72.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004553/0.9607, allocations: 137.1 kB / 0.595 GB, free: 72.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001804/0.9609, allocations: 143.3 kB / 0.5951 GB, free: 72.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00861/0.9695, allocations: 3.34 MB / 0.5984 GB, free: 72.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02509/0.9946, allocations: 13.63 MB / 0.6117 GB, free: 69.35 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006953/1.002, allocations: 6.8 MB / 0.6184 GB, free: 64.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002777/1.004, allocations: 1.362 MB / 0.6197 GB, free: 64.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008345/1.013, allocations: 3.862 MB / 0.6235 GB, free: 62.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/1.013, allocations: 44.66 kB / 0.6235 GB, free: 62.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=122): time 5.09e-06/1.013, allocations: 3.422 kB / 0.6235 GB, free: 62.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=142): time 0.01096/1.024, allocations: 5.014 MB / 0.6284 GB, free: 60.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/1.024, allocations: 67.22 kB / 0.6285 GB, free: 60.15 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/1.027, allocations: 1.626 MB / 0.63 GB, free: 59.51 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/1.027, allocations: 56.98 kB / 0.6301 GB, free: 59.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007849/1.028, allocations: 1.435 MB / 0.6315 GB, free: 58.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003383/1.029, allocations: 497.8 kB / 0.632 GB, free: 57.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.976e-05/1.029, allocations: 34.88 kB / 0.632 GB, free: 57.96 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/1.029, allocations: 370.4 kB / 0.6324 GB, free: 57.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/1.03, allocations: 0.7103 MB / 0.6331 GB, free: 57.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/1.031, allocations: 1.165 MB / 0.6342 GB, free: 56.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/1.032, allocations: 0.9267 MB / 0.6351 GB, free: 56.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/1.032, allocations: 3.906 kB / 0.6351 GB, free: 56.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.00399/1.036, allocations: 2.57 MB / 0.6376 GB, free: 55.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/1.036, allocations: 11.75 kB / 0.6376 GB, free: 55.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/1.036, allocations: 15.53 kB / 0.6376 GB, free: 55.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/1.038, allocations: 0.4917 MB / 0.6381 GB, free: 54.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/1.039, allocations: 379.5 kB / 0.6385 GB, free: 54.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006246/1.045, allocations: 6.384 MB / 0.6447 GB, free: 50.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/1.047, allocations: 79.86 kB / 0.6448 GB, free: 50.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/1.047, allocations: 76.69 kB / 0.6449 GB, free: 50.36 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003239/1.048, allocations: 198.6 kB / 0.6451 GB, free: 50.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000302/1.048, allocations: 194.9 kB / 0.6452 GB, free: 50.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/1.052, allocations: 2.415 MB / 0.6476 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/1.052, allocations: 10.66 kB / 0.6476 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/1.052, allocations: 14.12 kB / 0.6476 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/1.052, allocations: 6.609 kB / 0.6476 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007804/1.059, allocations: 5.388 MB / 0.6529 GB, free: 46.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/1.059, allocations: 2.906 kB / 0.6529 GB, free: 46.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008842/1.06, allocations: 224.1 kB / 0.6531 GB, free: 46.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/1.061, allocations: 494.7 kB / 0.6536 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.968e-05/1.062, allocations: 33.33 kB / 0.6536 GB, free: 46.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007576/1.069, allocations: 10.43 MB / 0.6638 GB, free: 37.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.069, allocations: 5.375 kB / 0.6638 GB, free: 37.49 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00447/1.074, allocations: 3.514 MB / 0.6672 GB, free: 35.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/1.075, allocations: 462.2 kB / 0.6677 GB, free: 35.33 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002339/1.075, allocations: 37.69 kB / 0.6677 GB, free: 35.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009072/1.076, allocations: 78.17 kB / 0.6678 GB, free: 35.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002453/1.076, allocations: 107.2 kB / 0.6679 GB, free: 35.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.007e-05/1.076, allocations: 40.09 kB / 0.6679 GB, free: 35.26 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001763/1.078, allocations: 1.246 MB / 0.6691 GB, free: 34.76 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.078, allocations: 0 / 0.6691 GB, free: 34.76 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00229/1.08, allocations: 0.6419 MB / 0.6698 GB, free: 34.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004875/1.085, allocations: 4.784 MB / 0.6744 GB, free: 31.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003406/1.089, allocations: 2.272 MB / 0.6767 GB, free: 30.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.089, allocations: 1.812 kB / 0.6767 GB, free: 30.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/1.091, allocations: 1.656 MB / 0.6783 GB, free: 29.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002407/1.093, allocations: 498 kB / 0.6788 GB, free: 29.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009509/1.102, allocations: 5.7 MB / 0.6843 GB, free: 27.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/1.104, allocations: 2.432 MB / 0.6867 GB, free: 26.04 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001495/1.106, allocations: 415.5 kB / 0.6871 GB, free: 25.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/1.107, allocations: 1.125 MB / 0.6882 GB, free: 25.05 MB / 442.7 MB Notification: Performance of SimCode: time 8.82e-07/1.107, allocations: 0 / 0.6882 GB, free: 25.05 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07886/1.186, allocations: 55.16 MB / 0.7421 GB, free: 5.266 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/1.186, allocations: 224.8 kB / 0.7423 GB, free: 5.035 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.608/4.794, allocations: 0 / 0.7423 GB, free: 5.035 MB / 458.7 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