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.001148/0.001148, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3173, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.0326/0.3499, allocations: 33.49 MB / 442.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02084/0.3708, allocations: 9.244 MB / 451.5 MB, free: 6.633 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008371/0.3792, allocations: 239.2 kB / 451.8 MB, free: 6.398 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.018/0.3972, allocations: 7.97 MB / 459.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01276/0.41, allocations: 3.663 MB / 463.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007217/0.4173, allocations: 2.136 MB / 465.5 MB, free: 8.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01798/0.4353, allocations: 13.14 MB / 478.7 MB, free: 11.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03892/0.4742, allocations: 22.49 MB / 0.4894 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01073/0.485, allocations: 6.592 MB / 0.4959 GB, free: 14.15 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01276/0.4978, allocations: 7.382 MB / 0.5031 GB, free: 6.742 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00552/0.5033, allocations: 1.883 MB / 0.5049 GB, free: 4.859 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008882/0.5122, allocations: 2.257 MB / 0.5071 GB, free: 2.602 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008133/0.5204, allocations: 3.745 MB / 0.5108 GB, free: 14.85 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01472/0.5352, allocations: 7.113 MB / 0.5177 GB, free: 7.707 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5157/1.051, allocations: 25.04 MB / 0.5422 GB, free: 53.02 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/1.051, allocations: 2.188 kB / 0.5422 GB, free: 53.02 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.774e-06/1.051, allocations: 1.125 kB / 0.5422 GB, free: 53.02 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007374/1.052, allocations: 0 / 0.5422 GB, free: 53.02 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.04757/1.099, allocations: 14.62 MB / 0.5564 GB, free: 49.32 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/1.099, allocations: 9.406 kB / 0.5565 GB, free: 49.32 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006796/1.106, allocations: 1.512 MB / 0.5579 GB, free: 49.21 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0377/1.144, allocations: 6.839 MB / 0.5646 GB, free: 48.57 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01635/1.16, allocations: 8.12 MB / 0.5725 GB, free: 47.45 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008324/1.161, allocations: 0.79 MB / 0.5733 GB, free: 47.43 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004671/1.166, allocations: 1.048 MB / 0.5743 GB, free: 47.38 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03983/1.206, allocations: 17.22 MB / 0.5911 GB, free: 33.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002977/1.206, allocations: 11.91 kB / 0.5912 GB, free: 33.26 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002358/1.208, allocations: 451.5 kB / 0.5916 GB, free: 32.83 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004504/1.209, allocations: 0.6313 MB / 0.5922 GB, free: 32.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02675/1.236, allocations: 16.3 MB / 0.6081 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09282/1.328, allocations: 56.31 MB / 0.6631 GB, free: 7 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02979/1.358, allocations: 31.41 MB / 0.6938 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008144/1.366, allocations: 4.327 MB / 0.698 GB, free: 15.55 MB / 0.5451 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02331/1.39, allocations: 10.7 MB / 0.7085 GB, free: 4.871 MB / 0.5451 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.895e-05/1.39, allocations: 84.91 kB / 0.7085 GB, free: 4.781 MB / 0.5451 GB Notification: Performance of pre-optimization done (n=398): time 6.001e-06/1.39, allocations: 3.938 kB / 0.7085 GB, free: 4.777 MB / 0.5451 GB Notification: Performance of matching and sorting (n=423): time 0.05449/1.444, allocations: 21.56 MB / 0.7296 GB, free: 14.92 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/1.444, allocations: 124.1 kB / 0.7297 GB, free: 14.78 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009309/1.454, allocations: 4.703 MB / 0.7343 GB, free: 10.07 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007692/1.455, allocations: 97.7 kB / 0.7344 GB, free: 9.969 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003203/1.458, allocations: 4.678 MB / 0.739 GB, free: 5.262 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001896/1.46, allocations: 1.441 MB / 0.7404 GB, free: 3.832 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003532/1.463, allocations: 1.128 MB / 0.7415 GB, free: 2.691 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 9.222e-05/1.463, allocations: 305.1 kB / 0.7418 GB, free: 2.391 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005154/1.469, allocations: 2.905 MB / 0.7446 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006933/1.476, allocations: 4.944 MB / 0.7494 GB, free: 9.637 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/1.489, allocations: 8.34 MB / 0.7576 GB, free: 0.625 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000115/1.489, allocations: 20 kB / 0.7576 GB, free: 0.6055 MB / 0.5919 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.273/1.762, allocations: 9.734 MB / 0.7671 GB, free: 231.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.489e-05/1.762, allocations: 35.47 kB / 0.7671 GB, free: 231.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.515e-05/1.762, allocations: 67.22 kB / 0.7672 GB, free: 231.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004091/1.766, allocations: 1.649 MB / 0.7688 GB, free: 231.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004868/1.771, allocations: 1.328 MB / 0.7701 GB, free: 231 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01994/1.791, allocations: 17.74 MB / 0.7874 GB, free: 219.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004905/1.796, allocations: 332.4 kB / 0.7878 GB, free: 219.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009416/1.797, allocations: 280.5 kB / 0.788 GB, free: 219.6 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.006098/1.803, allocations: 3.892 MB / 0.7918 GB, free: 217.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/1.804, allocations: 0.4915 MB / 0.7923 GB, free: 217.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01205/1.816, allocations: 7.786 MB / 0.7999 GB, free: 213.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.714e-05/1.816, allocations: 47.94 kB / 0.7999 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.124e-05/1.816, allocations: 16 kB / 0.8 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-05/1.816, allocations: 23.25 kB / 0.8 GB, free: 213.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0286/1.845, allocations: 17.46 MB / 0.817 GB, free: 198.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-05/1.845, allocations: 4 kB / 0.817 GB, free: 198.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00306/1.848, allocations: 0.7301 MB / 0.8178 GB, free: 198.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003715/1.852, allocations: 1.556 MB / 0.8193 GB, free: 196.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005734/1.852, allocations: 99.97 kB / 0.8194 GB, free: 196.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01818/1.871, allocations: 21.22 MB / 0.8401 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/1.871, allocations: 4 kB / 0.8401 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/1.885, allocations: 11.46 MB / 0.8513 GB, free: 162.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002668/1.888, allocations: 1.155 MB / 0.8524 GB, free: 161.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008966/1.889, allocations: 97.23 kB / 0.8525 GB, free: 161.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002476/1.891, allocations: 223.8 kB / 0.8527 GB, free: 161.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007393/1.892, allocations: 331.4 kB / 0.853 GB, free: 161.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002538/1.893, allocations: 128 kB / 0.8532 GB, free: 161 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004709/1.897, allocations: 3.194 MB / 0.8563 GB, free: 157.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.21e-07/1.897, allocations: 0 / 0.8563 GB, free: 157.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00874/1.906, allocations: 1.862 MB / 0.8581 GB, free: 155.9 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.01565/1.922, allocations: 12.19 MB / 0.87 GB, free: 143.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0113/1.933, allocations: 8.154 MB / 0.878 GB, free: 135.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.933, allocations: 0 / 0.878 GB, free: 135.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006724/1.94, allocations: 4.644 MB / 0.8825 GB, free: 130.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006323/1.946, allocations: 1.308 MB / 0.8838 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.111/2.057, allocations: 63.89 MB / 0.9462 GB, free: 62.72 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01012/2.067, allocations: 6.77 MB / 0.9528 GB, free: 55.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006044/2.073, allocations: 1.87 MB / 0.9546 GB, free: 54.03 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006092/2.08, allocations: 3.928 MB / 0.9584 GB, free: 50.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.443e-06/2.08, allocations: 0 / 0.9584 GB, free: 50.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4438/2.523, allocations: 152.5 MB / 1.107 GB, free: 145 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.98/24.5, allocations: 22.42 kB / 1.107 GB, free: 145 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)