Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.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_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001767/0.001767, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002059, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 59.91 kB / 358.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3135, allocations: 50.55 MB / 408.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.02395/0.3375, allocations: 21.56 MB / 430.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01625/0.3538, allocations: 6.784 MB / 437.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004425/0.3583, allocations: 143.6 kB / 437.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01702/0.3753, allocations: 6.821 MB / 444.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0108/0.3861, allocations: 2.75 MB / 446.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004648/0.3908, allocations: 1.568 MB / 448.5 MB, free: 9.648 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01301/0.4038, allocations: 9.073 MB / 457.6 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03035/0.4342, allocations: 17.8 MB / 475.4 MB, free: 14.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009245/0.4435, allocations: 4.633 MB / 480 MB, free: 9.938 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01056/0.4541, allocations: 5.167 MB / 485.2 MB, free: 4.754 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004913/0.4591, allocations: 1.359 MB / 486.5 MB, free: 3.395 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008465/0.4676, allocations: 1.691 MB / 488.2 MB, free: 1.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005924/0.4736, allocations: 2.615 MB / 490.8 MB, free: 15.08 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01247/0.486, allocations: 4.958 MB / 495.8 MB, free: 10.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0303/0.5164, allocations: 18.26 MB / 0.502 GB, free: 7.789 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.367e-06/0.5164, allocations: 0 / 0.502 GB, free: 7.789 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.5165, allocations: 0 / 0.502 GB, free: 7.789 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006476/0.5171, allocations: 0 / 0.502 GB, free: 7.789 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2107 * Number of variables: 2107 Notification: Performance of Generate backend data structure: time 0.04255/0.5597, allocations: 10.73 MB / 0.5125 GB, free: 12.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.422e-05/0.5598, allocations: 12.03 kB / 0.5125 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006137/0.5659, allocations: 1.09 MB / 0.5135 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03564/0.6016, allocations: 5.906 MB / 0.5193 GB, free: 5.926 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01527/0.6169, allocations: 5.742 MB / 0.5249 GB, free: 128 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007276/0.6177, allocations: 0.554 MB / 0.5255 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004086/0.6218, allocations: 0.7342 MB / 0.5262 GB, free: 14.83 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03879/0.6606, allocations: 12.89 MB / 0.5388 GB, free: 1.883 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003015/0.661, allocations: 15.95 kB / 0.5388 GB, free: 1.867 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004197/0.6652, allocations: 308 kB / 0.5391 GB, free: 1.566 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006857/0.6659, allocations: 0.4883 MB / 0.5396 GB, free: 1.074 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3168/0.9827, allocations: 12.61 MB / 0.5519 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06753/1.05, allocations: 41.55 MB / 0.5924 GB, free: 74.86 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01765/1.068, allocations: 26.27 MB / 0.6181 GB, free: 45.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005402/1.073, allocations: 3.222 MB / 0.6212 GB, free: 42.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004949/1.074, allocations: 275.6 kB / 0.6215 GB, free: 42.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.789e-05/1.074, allocations: 81.66 kB / 0.6216 GB, free: 41.93 MB / 462.1 MB Notification: Performance of pre-optimization done (n=410): time 5.39e-06/1.074, allocations: 0 / 0.6216 GB, free: 41.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=415): time 0.03918/1.113, allocations: 17.12 MB / 0.6383 GB, free: 24.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/1.113, allocations: 98.61 kB / 0.6384 GB, free: 24.64 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004085/1.117, allocations: 2.844 MB / 0.6412 GB, free: 21.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008451/1.118, allocations: 93.7 kB / 0.6413 GB, free: 21.69 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/1.12, allocations: 3.14 MB / 0.6443 GB, free: 18.54 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001677/1.122, allocations: 1.466 MB / 0.6458 GB, free: 17.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001467/1.123, allocations: 0.9583 MB / 0.6467 GB, free: 16.13 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.797e-05/1.123, allocations: 304.8 kB / 0.647 GB, free: 15.83 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003435/1.127, allocations: 2.508 MB / 0.6494 GB, free: 13.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004322/1.131, allocations: 4.113 MB / 0.6535 GB, free: 8.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009042/1.14, allocations: 7.206 MB / 0.6605 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.948e-05/1.14, allocations: 12 kB / 0.6605 GB, free: 0.543 MB / 462.1 MB Notification: Performance of matching and sorting (n=648) (initialization): time 0.01792/1.158, allocations: 8.067 MB / 0.6684 GB, free: 8.449 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.206e-05/1.158, allocations: 31.94 kB / 0.6684 GB, free: 8.418 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/1.158, allocations: 48 kB / 0.6685 GB, free: 8.371 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004015/1.162, allocations: 1.231 MB / 0.6697 GB, free: 7.133 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005281/1.168, allocations: 1.135 MB / 0.6708 GB, free: 5.996 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/1.187, allocations: 11.24 MB / 0.6817 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004325/1.192, allocations: 259.7 kB / 0.682 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001068/1.193, allocations: 236 kB / 0.6822 GB, free: 10 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 228 * 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 (590): * Single equations (assignments): 588 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (14,44,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006668/1.199, allocations: 2.963 MB / 0.6851 GB, free: 7.027 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001124/1.2, allocations: 373.6 kB / 0.6855 GB, free: 6.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01383/1.214, allocations: 6.698 MB / 0.692 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.671e-05/1.214, allocations: 47.94 kB / 0.6921 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.729e-05/1.214, allocations: 8 kB / 0.6921 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.187e-05/1.215, allocations: 23.91 kB / 0.6921 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03147/1.246, allocations: 14.9 MB / 0.7066 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.079e-05/1.246, allocations: 11.94 kB / 0.7066 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003478/1.25, allocations: 0.7527 MB / 0.7074 GB, free: 120 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003675/1.253, allocations: 1.13 MB / 0.7085 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008127/1.254, allocations: 95.97 kB / 0.7086 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01651/1.271, allocations: 10.17 MB / 0.7185 GB, free: 4.445 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.729e-06/1.271, allocations: 11.94 kB / 0.7185 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0196/1.29, allocations: 10.05 MB / 0.7283 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002929/1.293, allocations: 0.9398 MB / 0.7293 GB, free: 9.297 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009324/1.294, allocations: 83.95 kB / 0.7293 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002412/1.297, allocations: 203.8 kB / 0.7295 GB, free: 9.016 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009223/1.298, allocations: 311.2 kB / 0.7298 GB, free: 8.711 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003019/1.298, allocations: 128 kB / 0.7299 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003551/1.301, allocations: 1.955 MB / 0.7319 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3e-07/1.301, allocations: 4 kB / 0.7319 GB, free: 6.621 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005978/1.307, allocations: 1.387 MB / 0.7332 GB, free: 5.234 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 3 (aimc.inertiaRotor.w,voltageSource.plug_p.reference.gamma,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 (398): * Single equations (assignments): 396 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (14,44,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.3152/1.623, allocations: 10.78 MB / 0.7437 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0107/1.633, allocations: 6.754 MB / 0.7503 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/1.633, allocations: 3.906 kB / 0.7503 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005604/1.639, allocations: 3.555 MB / 0.7538 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004319/1.643, allocations: 0.8431 MB / 0.7546 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0791/1.722, allocations: 47.17 MB / 0.8007 GB, free: 135.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008074/1.731, allocations: 5.092 MB / 0.8057 GB, free: 130.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004207/1.735, allocations: 1.618 MB / 0.8072 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004135/1.739, allocations: 2.674 MB / 0.8099 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.272e-06/1.739, allocations: 0 / 0.8099 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1641/1.903, allocations: 109.7 MB / 0.917 GB, free: 17.06 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.66/20.56, allocations: 4.812 kB / 0.917 GB, free: 17.06 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1)