Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_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.001459/0.001458, allocations: 117.8 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001817/0.001817, allocations: 207.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 59.91 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.261, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.03285/0.2938, allocations: 33.49 MB / 442.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01928/0.3132, allocations: 9.244 MB / 451.5 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006288/0.3195, allocations: 247.1 kB / 451.8 MB, free: 6.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01786/0.3374, allocations: 7.962 MB / 459.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0115/0.3489, allocations: 3.663 MB / 463.4 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006276/0.3552, allocations: 2.143 MB / 465.5 MB, free: 8.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01757/0.3728, allocations: 13.15 MB / 478.7 MB, free: 11.4 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03608/0.4089, allocations: 22.47 MB / 0.4894 GB, free: 4.754 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01062/0.4196, allocations: 6.596 MB / 0.4959 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01291/0.4325, allocations: 7.378 MB / 0.5031 GB, free: 6.738 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005549/0.4381, allocations: 1.883 MB / 0.5049 GB, free: 4.855 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008002/0.4461, allocations: 2.269 MB / 0.5071 GB, free: 2.586 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007154/0.4533, allocations: 3.741 MB / 0.5108 GB, free: 14.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01587/0.4692, allocations: 7.113 MB / 0.5177 GB, free: 7.695 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.588/1.057, allocations: 25.04 MB / 0.5422 GB, free: 52.97 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/1.057, allocations: 0 / 0.5422 GB, free: 52.97 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.844e-06/1.057, allocations: 3.25 kB / 0.5422 GB, free: 52.97 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006629/1.058, allocations: 0.625 kB / 0.5422 GB, free: 52.97 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04308/1.101, allocations: 14.62 MB / 0.5564 GB, free: 49.29 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/1.101, allocations: 9.625 kB / 0.5565 GB, free: 49.29 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005753/1.107, allocations: 1.512 MB / 0.5579 GB, free: 49.17 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03924/1.146, allocations: 6.843 MB / 0.5646 GB, free: 48.54 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01762/1.164, allocations: 8.123 MB / 0.5725 GB, free: 47.41 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006419/1.164, allocations: 0.7882 MB / 0.5733 GB, free: 47.39 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004205/1.169, allocations: 1.05 MB / 0.5743 GB, free: 47.38 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03584/1.204, allocations: 17.21 MB / 0.5911 GB, free: 33.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003756/1.205, allocations: 19.56 kB / 0.5912 GB, free: 33.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002833/1.208, allocations: 440.7 kB / 0.5916 GB, free: 32.78 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004853/1.208, allocations: 0.6314 MB / 0.5922 GB, free: 32.14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02916/1.237, allocations: 16.3 MB / 0.6081 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09271/1.33, allocations: 56.31 MB / 0.6631 GB, free: 6.941 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0285/1.359, allocations: 31.39 MB / 0.6938 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007558/1.366, allocations: 4.34 MB / 0.698 GB, free: 15.49 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0205/1.387, allocations: 10.7 MB / 0.7085 GB, free: 4.809 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.098e-05/1.387, allocations: 81.81 kB / 0.7085 GB, free: 4.719 MB / 0.545 GB Notification: Performance of pre-optimization done (n=398): time 5.18e-06/1.387, allocations: 3.938 kB / 0.7085 GB, free: 4.715 MB / 0.545 GB Notification: Performance of matching and sorting (n=423): time 0.05012/1.437, allocations: 21.56 MB / 0.7296 GB, free: 14.85 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.248e-05/1.437, allocations: 120.7 kB / 0.7297 GB, free: 14.71 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009737/1.447, allocations: 4.703 MB / 0.7343 GB, free: 10 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009065/1.448, allocations: 93.7 kB / 0.7344 GB, free: 9.906 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003405/1.451, allocations: 4.675 MB / 0.739 GB, free: 5.203 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002085/1.453, allocations: 1.448 MB / 0.7404 GB, free: 3.77 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002255/1.456, allocations: 1.128 MB / 0.7415 GB, free: 2.629 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.456, allocations: 301.1 kB / 0.7418 GB, free: 2.332 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004612/1.46, allocations: 2.917 MB / 0.7446 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006188/1.467, allocations: 4.945 MB / 0.7494 GB, free: 9.57 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01177/1.478, allocations: 8.339 MB / 0.7576 GB, free: 0.5625 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.878e-05/1.479, allocations: 20 kB / 0.7576 GB, free: 0.543 MB / 0.5919 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.2973/1.776, allocations: 9.726 MB / 0.7671 GB, free: 231.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.526e-05/1.776, allocations: 35.5 kB / 0.7671 GB, free: 231.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/1.776, allocations: 73.05 kB / 0.7672 GB, free: 231.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004416/1.781, allocations: 1.65 MB / 0.7688 GB, free: 231.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005672/1.786, allocations: 1.321 MB / 0.7701 GB, free: 231 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02119/1.807, allocations: 17.75 MB / 0.7874 GB, free: 219.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005927/1.813, allocations: 335.5 kB / 0.7878 GB, free: 219.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001091/1.815, allocations: 283.6 kB / 0.788 GB, free: 219.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0081/1.823, allocations: 3.883 MB / 0.7918 GB, free: 217.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001596/1.824, allocations: 0.4907 MB / 0.7923 GB, free: 217.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01285/1.837, allocations: 7.789 MB / 0.7999 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.041e-05/1.837, allocations: 43.94 kB / 0.7999 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.68e-05/1.837, allocations: 16 kB / 0.8 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.21e-05/1.837, allocations: 26.97 kB / 0.8 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.027/1.864, allocations: 17.47 MB / 0.817 GB, free: 198.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/1.864, allocations: 4 kB / 0.817 GB, free: 198.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002879/1.867, allocations: 0.7309 MB / 0.8178 GB, free: 197.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003777/1.871, allocations: 1.545 MB / 0.8193 GB, free: 196.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003462/1.871, allocations: 112 kB / 0.8194 GB, free: 196.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01876/1.89, allocations: 21.2 MB / 0.8401 GB, free: 174.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.89, allocations: 11.94 kB / 0.8401 GB, free: 174.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01733/1.907, allocations: 11.46 MB / 0.8513 GB, free: 162.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004427/1.912, allocations: 1.152 MB / 0.8524 GB, free: 161.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001686/1.914, allocations: 93.34 kB / 0.8525 GB, free: 161.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003496/1.917, allocations: 231.8 kB / 0.8527 GB, free: 161.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008974/1.918, allocations: 327.3 kB / 0.853 GB, free: 161 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002938/1.918, allocations: 136 kB / 0.8532 GB, free: 160.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0047/1.923, allocations: 3.19 MB / 0.8563 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/1.923, allocations: 0 / 0.8563 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007586/1.931, allocations: 1.866 MB / 0.8581 GB, free: 155.8 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01495/1.946, allocations: 12.18 MB / 0.87 GB, free: 143.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01311/1.959, allocations: 8.148 MB / 0.878 GB, free: 135.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.511e-05/1.959, allocations: 4 kB / 0.878 GB, free: 135.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00803/1.967, allocations: 4.644 MB / 0.8825 GB, free: 130.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009246/1.976, allocations: 1.314 MB / 0.8838 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1062/2.082, allocations: 63.89 MB / 0.9462 GB, free: 62.61 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007703/2.09, allocations: 6.774 MB / 0.9528 GB, free: 55.79 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005371/2.096, allocations: 1.861 MB / 0.9546 GB, free: 53.92 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005197/2.101, allocations: 3.924 MB / 0.9584 GB, free: 50 MB / 0.5919 GB Notification: Performance of SimCode: time 1.382e-06/2.101, allocations: 1.531 kB / 0.9584 GB, free: 50 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4694/2.57, allocations: 152.5 MB / 1.107 GB, free: 144.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.6/25.17, allocations: 12.55 kB / 1.107 GB, free: 144.9 MB / 0.5919 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1)