Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001443/0.001443, 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.00148/0.00148, allocations: 201.2 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.472/1.472, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 59.91 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2738, allocations: 50.56 MB / 408.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03532/0.3092, allocations: 30.98 MB / 439.8 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02109/0.3303, allocations: 8.88 MB / 448.7 MB, free: 9.473 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005817/0.3362, allocations: 191.4 kB / 448.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01353/0.3498, allocations: 4.924 MB / 453.8 MB, free: 4.348 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0102/0.36, allocations: 2.967 MB / 456.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005079/0.3651, allocations: 1.627 MB / 458.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01361/0.3787, allocations: 8.81 MB / 467.2 MB, free: 6.906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02125/0.4, allocations: 12.85 MB / 480.1 MB, free: 9.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00809/0.4081, allocations: 4.226 MB / 484.3 MB, free: 5.715 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008967/0.4172, allocations: 4.839 MB / 489.2 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00368/0.4209, allocations: 1.164 MB / 490.3 MB, free: 15.69 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006014/0.4269, allocations: 1.542 MB / 491.9 MB, free: 14.15 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005142/0.4321, allocations: 2.404 MB / 494.3 MB, free: 11.74 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00962/0.4418, allocations: 4.676 MB / 498.9 MB, free: 7.047 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02474/0.4666, allocations: 15.89 MB / 0.5028 GB, free: 7.109 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.241e-05/0.4666, allocations: 3.984 kB / 0.5028 GB, free: 7.105 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4666, allocations: 0 / 0.5028 GB, free: 7.105 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005571/0.4672, allocations: 0 / 0.5028 GB, free: 7.105 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03236/0.4996, allocations: 9.971 MB / 0.5125 GB, free: 13.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/0.4997, allocations: 8.031 kB / 0.5125 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004373/0.504, allocations: 1.145 MB / 0.5136 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03058/0.5347, allocations: 5.224 MB / 0.5187 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.5462, allocations: 5.15 MB / 0.5238 GB, free: 1.398 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005706/0.5468, allocations: 0.5299 MB / 0.5243 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00277/0.5496, allocations: 0.7069 MB / 0.525 GB, free: 164 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03148/0.5811, allocations: 11.36 MB / 0.5361 GB, free: 4.715 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004684/0.5816, allocations: 15.91 kB / 0.5361 GB, free: 4.699 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002969/0.5846, allocations: 300 kB / 0.5364 GB, free: 4.406 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000607/0.5852, allocations: 451 kB / 0.5368 GB, free: 3.965 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2752/0.8604, allocations: 10.86 MB / 0.5474 GB, free: 112.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05796/0.9184, allocations: 38.6 MB / 0.5851 GB, free: 82.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01421/0.9327, allocations: 28.32 MB / 0.6128 GB, free: 50.55 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003977/0.9367, allocations: 2.69 MB / 0.6154 GB, free: 47.86 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0121/0.9489, allocations: 8.468 MB / 0.6236 GB, free: 39.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.949, allocations: 56.56 kB / 0.6237 GB, free: 39.28 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.739e-06/0.949, allocations: 0 / 0.6237 GB, free: 39.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01907/0.9681, allocations: 10.49 MB / 0.6339 GB, free: 29.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001657/0.9698, allocations: 2.013 MB / 0.6359 GB, free: 26.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005285/0.9751, allocations: 3.844 MB / 0.6397 GB, free: 23.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004475/0.9756, allocations: 61.7 kB / 0.6397 GB, free: 23 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001638/0.9772, allocations: 3.688 MB / 0.6433 GB, free: 19.37 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008181/0.9781, allocations: 0.8707 MB / 0.6442 GB, free: 18.51 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001322/0.9794, allocations: 0.9692 MB / 0.6451 GB, free: 17.53 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.06e-05/0.9795, allocations: 305.1 kB / 0.6454 GB, free: 17.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002457/0.9819, allocations: 1.891 MB / 0.6473 GB, free: 15.33 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003776/0.9857, allocations: 4.395 MB / 0.6515 GB, free: 9.703 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007117/0.9929, allocations: 6.808 MB / 0.6582 GB, free: 1.688 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.883e-05/0.993, allocations: 24 kB / 0.6582 GB, free: 1.664 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01426/1.007, allocations: 7.013 MB / 0.6651 GB, free: 10.63 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.688e-05/1.007, allocations: 48.11 kB / 0.6651 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/1.008, allocations: 92 kB / 0.6652 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002253/1.01, allocations: 0.7407 MB / 0.6659 GB, free: 9.746 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004005/1.014, allocations: 1.123 MB / 0.667 GB, free: 8.621 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008452/1.022, allocations: 5.633 MB / 0.6725 GB, free: 2.844 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004088/1.026, allocations: 311.4 kB / 0.6728 GB, free: 2.539 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008561/1.027, allocations: 280 kB / 0.6731 GB, free: 2.266 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005201/1.033, allocations: 2.522 MB / 0.6755 GB, free: 15.73 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001123/1.034, allocations: 409.4 kB / 0.6759 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008563/1.042, allocations: 4.275 MB / 0.6801 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.87e-05/1.042, allocations: 27.94 kB / 0.6801 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/1.042, allocations: 8 kB / 0.6801 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.792e-05/1.042, allocations: 11.95 kB / 0.6802 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0282/1.071, allocations: 14.32 MB / 0.6941 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.821e-05/1.071, allocations: 12 kB / 0.6942 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/1.073, allocations: 487.2 kB / 0.6946 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00228/1.075, allocations: 0.6896 MB / 0.6953 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004631/1.076, allocations: 71.97 kB / 0.6954 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01079/1.086, allocations: 7.512 MB / 0.7027 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002245/1.089, allocations: 1.949 MB / 0.7046 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01272/1.101, allocations: 6.793 MB / 0.7112 GB, free: 10.24 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00264/1.104, allocations: 0.8186 MB / 0.712 GB, free: 9.402 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.105, allocations: 59.98 kB / 0.7121 GB, free: 9.344 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002214/1.107, allocations: 167.9 kB / 0.7123 GB, free: 9.18 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005364/1.108, allocations: 225.4 kB / 0.7125 GB, free: 8.957 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002807/1.108, allocations: 91.98 kB / 0.7126 GB, free: 8.867 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004689/1.113, allocations: 2.522 MB / 0.715 GB, free: 6.332 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.61e-07/1.113, allocations: 4 kB / 0.715 GB, free: 6.328 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006002/1.119, allocations: 1.297 MB / 0.7163 GB, free: 5.031 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01347/1.133, allocations: 7.473 MB / 0.7236 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01016/1.143, allocations: 5.169 MB / 0.7286 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.718e-05/1.143, allocations: 0 / 0.7286 GB, free: 8.051 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004974/1.148, allocations: 2.428 MB / 0.731 GB, free: 5.582 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005628/1.153, allocations: 1.008 MB / 0.732 GB, free: 4.602 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3043/1.458, allocations: 46.2 MB / 0.7771 GB, free: 185.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00533/1.463, allocations: 4.506 MB / 0.7815 GB, free: 183.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003633/1.467, allocations: 1.368 MB / 0.7828 GB, free: 182.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003183/1.47, allocations: 2.557 MB / 0.7853 GB, free: 179.6 MB / 0.545 GB Notification: Performance of SimCode: time 8.81e-07/1.47, allocations: 7.938 kB / 0.7853 GB, free: 179.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1545/1.624, allocations: 103.6 MB / 0.8865 GB, free: 76.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.78/23.4, allocations: 20.77 kB / 0.8865 GB, free: 76.73 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)