Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001162/0.001162, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 67.59 kB / 307.1 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08288/0.08424, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.1919/0.2761, allocations: 45.94 MB / 403.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02664/0.3028, allocations: 12.1 MB / 415.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00946/0.3123, allocations: 362.1 kB / 416 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02813/0.3405, allocations: 12.4 MB / 428.4 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01733/0.3579, allocations: 4.811 MB / 433.2 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009374/0.3672, allocations: 3.04 MB / 436.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02411/0.3914, allocations: 20.96 MB / 457.2 MB, free: 8.523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06638/0.4578, allocations: 42.21 MB / 499.4 MB, free: 14.04 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01771/0.4755, allocations: 10.92 MB / 0.4984 GB, free: 3.094 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01888/0.4945, allocations: 12.22 MB / 0.5103 GB, free: 6.828 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008098/0.5026, allocations: 3.133 MB / 0.5134 GB, free: 3.695 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01095/0.5136, allocations: 3.574 MB / 0.5169 GB, free: 124 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00855/0.5222, allocations: 6.258 MB / 0.523 GB, free: 9.844 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3774/0.8996, allocations: 11.92 MB / 0.5346 GB, free: 67.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04572/0.9454, allocations: 41.26 MB / 0.5749 GB, free: 57.49 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.9455, allocations: 4.625 kB / 0.5749 GB, free: 57.49 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.9455, allocations: 0 / 0.5749 GB, free: 57.49 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001223/0.9467, allocations: 0 / 0.5749 GB, free: 57.49 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.08019/1.027, allocations: 24.01 MB / 0.5984 GB, free: 43.54 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/1.027, allocations: 11.52 kB / 0.5984 GB, free: 43.54 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01067/1.038, allocations: 2.945 MB / 0.6012 GB, free: 41.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0614/1.099, allocations: 11.34 MB / 0.6123 GB, free: 34.35 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02798/1.127, allocations: 13.08 MB / 0.6251 GB, free: 21.83 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001118/1.128, allocations: 1.365 MB / 0.6264 GB, free: 20.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007286/1.136, allocations: 1.798 MB / 0.6282 GB, free: 18.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07806/1.214, allocations: 29.59 MB / 0.6571 GB, free: 5.035 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008033/1.214, allocations: 27.8 kB / 0.6571 GB, free: 5.008 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00754/1.222, allocations: 0.7382 MB / 0.6578 GB, free: 4.285 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001017/1.223, allocations: 0.983 MB / 0.6588 GB, free: 3.297 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0622/1.285, allocations: 27.3 MB / 0.6854 GB, free: 7.988 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.357/1.642, allocations: 94.9 MB / 0.7781 GB, free: 137.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03386/1.676, allocations: 52.59 MB / 0.8295 GB, free: 92.95 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0116/1.688, allocations: 7.336 MB / 0.8366 GB, free: 89.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03284/1.721, allocations: 19.75 MB / 0.8559 GB, free: 71.54 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.331e-05/1.721, allocations: 108.5 kB / 0.856 GB, free: 71.43 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=677): time 9.147e-06/1.721, allocations: 4 kB / 0.856 GB, free: 71.42 MB / 0.5138 GB Notification: Performance of matching and sorting (n=685): time 0.08/1.801, allocations: 38.13 MB / 0.8933 GB, free: 32.89 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/1.801, allocations: 151.1 kB / 0.8934 GB, free: 32.72 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009961/1.811, allocations: 7.142 MB / 0.9004 GB, free: 25.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001279/1.812, allocations: 137.7 kB / 0.9005 GB, free: 25.46 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003395/1.816, allocations: 7.821 MB / 0.9082 GB, free: 17.59 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002383/1.818, allocations: 2.328 MB / 0.9104 GB, free: 15.28 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0033/1.821, allocations: 1.866 MB / 0.9123 GB, free: 13.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.199e-05/1.821, allocations: 313.1 kB / 0.9126 GB, free: 13.09 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006189/1.828, allocations: 4.86 MB / 0.9173 GB, free: 8.227 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1945/2.022, allocations: 8.335 MB / 0.9254 GB, free: 163.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02102/2.043, allocations: 13.99 MB / 0.9391 GB, free: 159.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001449/2.043, allocations: 35 kB / 0.9391 GB, free: 159.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02592/2.069, allocations: 16.07 MB / 0.9548 GB, free: 156 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.046e-05/2.069, allocations: 53.94 kB / 0.9549 GB, free: 156 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/2.07, allocations: 110.6 kB / 0.955 GB, free: 156 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005711/2.075, allocations: 2.604 MB / 0.9575 GB, free: 155.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007718/2.083, allocations: 2.102 MB / 0.9596 GB, free: 155.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03047/2.114, allocations: 30.78 MB / 0.9896 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008205/2.122, allocations: 0.5327 MB / 0.9902 GB, free: 132.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001773/2.124, allocations: 460.6 kB / 0.9906 GB, free: 131.7 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (18,100,38.3%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0113/2.135, allocations: 6.762 MB / 0.9972 GB, free: 126 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001752/2.137, allocations: 0.7753 MB / 0.998 GB, free: 125.6 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01954/2.156, allocations: 13.08 MB / 1.011 GB, free: 114.5 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0112/2.167, allocations: 8.219 MB / 1.019 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.672e-05/2.168, allocations: 28 kB / 1.019 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.944e-05/2.168, allocations: 31.88 kB / 1.019 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05102/2.219, allocations: 27.99 MB / 1.046 GB, free: 78.45 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.69e-05/2.219, allocations: 4 kB / 1.046 GB, free: 78.44 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004702/2.223, allocations: 1.112 MB / 1.047 GB, free: 77.33 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005969/2.229, allocations: 2.661 MB / 1.05 GB, free: 74.63 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000811/2.23, allocations: 152 kB / 1.05 GB, free: 74.48 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03008/2.26, allocations: 35.86 MB / 1.085 GB, free: 37.46 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/2.26, allocations: 4 kB / 1.085 GB, free: 37.46 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02648/2.287, allocations: 18.78 MB / 1.103 GB, free: 18.51 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004406/2.291, allocations: 1.764 MB / 1.105 GB, free: 16.72 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001942/2.293, allocations: 127.9 kB / 1.105 GB, free: 16.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004814/2.298, allocations: 399.6 kB / 1.106 GB, free: 16.21 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001413/2.3, allocations: 0.5334 MB / 1.106 GB, free: 15.67 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005133/2.3, allocations: 188 kB / 1.106 GB, free: 15.49 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.2134/2.513, allocations: 4.812 MB / 1.111 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of sort global known variables: time 8.22e-07/2.514, allocations: 1.031 kB / 1.111 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01542/2.529, allocations: 3.062 MB / 1.114 GB, free: 153.2 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (560): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,5,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,8,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03086/2.56, allocations: 19.61 MB / 1.133 GB, free: 151.4 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.05117/2.611, allocations: 24.86 MB / 1.157 GB, free: 143 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/2.611, allocations: 0 / 1.157 GB, free: 143 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.01175/2.623, allocations: 7.551 MB / 1.165 GB, free: 136.2 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01271/2.636, allocations: 2.18 MB / 1.167 GB, free: 134.5 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1712/2.807, allocations: 135.1 MB / 1.299 GB, free: 13 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1966/3.003, allocations: 11.36 MB / 1.31 GB, free: 191.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01156/3.015, allocations: 3.302 MB / 1.313 GB, free: 191.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01194/3.027, allocations: 6.835 MB / 1.32 GB, free: 191.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.52e-07/3.027, allocations: 0 / 1.32 GB, free: 191.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4875/3.515, allocations: 248.7 MB / 1.563 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/18.15, allocations: 4.938 kB / 1.563 GB, free: 147.1 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1)