Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 100.2 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.346/1.346, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 51.92 kB / 280.8 MB, free: 3.051 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08762/0.08881, allocations: 46.62 MB / 327.4 MB, free: 4.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03047/0.1193, allocations: 30.24 MB / 357.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01739/0.1368, allocations: 8.639 MB / 366.3 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006198/0.143, allocations: 163.5 kB / 366.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0123/0.1553, allocations: 4.903 MB / 371.4 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009793/0.1652, allocations: 2.941 MB / 374.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00533/0.1705, allocations: 1.613 MB / 375.9 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1705/0.3411, allocations: 8.638 MB / 384.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01721/0.3583, allocations: 12.88 MB / 397.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00753/0.3659, allocations: 4.211 MB / 401.6 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008321/0.3742, allocations: 4.75 MB / 406.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002578/0.3769, allocations: 1.162 MB / 407.6 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004378/0.3812, allocations: 1.529 MB / 409.1 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002393/0.3837, allocations: 2.423 MB / 411.5 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005525/0.3892, allocations: 4.667 MB / 416.2 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01424/0.4035, allocations: 15.67 MB / 431.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.4035, allocations: 0 / 431.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4035, allocations: 0 / 431.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003103/0.4038, allocations: 0 / 431.8 MB, free: 3.723 MB / 334.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.02663/0.4305, allocations: 9.78 MB / 441.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4305, allocations: 15.97 kB / 441.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002618/0.4331, allocations: 1.147 MB / 442.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02846/0.4616, allocations: 5.254 MB / 448 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009813/0.4715, allocations: 4.669 MB / 452.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000535/0.472, allocations: 0.535 MB / 453.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002456/0.4745, allocations: 0.7119 MB / 453.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02305/0.4976, allocations: 11.33 MB / 465.3 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001977/0.4978, allocations: 15.81 kB / 465.3 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009182/0.4987, allocations: 298.8 kB / 465.6 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004289/0.4992, allocations: 443 kB / 466 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02132/0.5205, allocations: 10.81 MB / 476.8 MB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06406/0.5846, allocations: 37.99 MB / 0.5027 GB, free: 440 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01921/0.6039, allocations: 28.1 MB / 0.5302 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1385/0.7424, allocations: 2.644 MB / 0.5328 GB, free: 152 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01264/0.7551, allocations: 7.941 MB / 0.5405 GB, free: 149 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.7551, allocations: 53.38 kB / 0.5406 GB, free: 148.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.318e-06/0.7552, allocations: 1.531 kB / 0.5406 GB, free: 148.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01903/0.7742, allocations: 10.36 MB / 0.5507 GB, free: 144.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001489/0.7757, allocations: 2.02 MB / 0.5527 GB, free: 142.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004819/0.7805, allocations: 3.819 MB / 0.5564 GB, free: 141.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002273/0.7808, allocations: 61.58 kB / 0.5565 GB, free: 141.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001541/0.7823, allocations: 3.557 MB / 0.5599 GB, free: 138.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006842/0.783, allocations: 0.8267 MB / 0.5607 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001257/0.7843, allocations: 0.9599 MB / 0.5617 GB, free: 137.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.752e-05/0.7844, allocations: 301.1 kB / 0.562 GB, free: 137.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002676/0.787, allocations: 1.896 MB / 0.5638 GB, free: 136.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003158/0.7902, allocations: 4.385 MB / 0.5681 GB, free: 132.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005665/0.7959, allocations: 6.787 MB / 0.5747 GB, free: 126.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.792e-05/0.796, allocations: 28.12 kB / 0.5748 GB, free: 126.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009574/0.8056, allocations: 6.979 MB / 0.5816 GB, free: 122.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.122e-05/0.8057, allocations: 44 kB / 0.5816 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.8058, allocations: 84 kB / 0.5817 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001724/0.8075, allocations: 0.7439 MB / 0.5824 GB, free: 122.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003342/0.8108, allocations: 1.119 MB / 0.5835 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006002/0.8169, allocations: 5.646 MB / 0.589 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004093/0.821, allocations: 313.2 kB / 0.5893 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004925/0.8215, allocations: 275.8 kB / 0.5896 GB, free: 115.6 MB / 446.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.003555/0.8251, allocations: 2.52 MB / 0.5921 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007302/0.8258, allocations: 383.3 kB / 0.5924 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006077/0.8319, allocations: 4.274 MB / 0.5966 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.8319, allocations: 24 kB / 0.5966 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.8319, allocations: 8 kB / 0.5966 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.832, allocations: 11.95 kB / 0.5966 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/0.8497, allocations: 14.3 MB / 0.6106 GB, free: 93.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/0.8498, allocations: 8 kB / 0.6106 GB, free: 93.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001684/0.8515, allocations: 479.2 kB / 0.6111 GB, free: 93.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/0.8533, allocations: 0.7053 MB / 0.6118 GB, free: 92.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001675/0.8535, allocations: 71.97 kB / 0.6118 GB, free: 92.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007339/0.8608, allocations: 7.486 MB / 0.6191 GB, free: 84.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001302/0.8621, allocations: 1.96 MB / 0.621 GB, free: 82.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008396/0.8705, allocations: 6.74 MB / 0.6276 GB, free: 75.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/0.8724, allocations: 0.789 MB / 0.6284 GB, free: 74.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000523/0.8729, allocations: 64.05 kB / 0.6285 GB, free: 74.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/0.8746, allocations: 163.8 kB / 0.6286 GB, free: 74.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003638/0.875, allocations: 217.5 kB / 0.6288 GB, free: 74.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.8751, allocations: 91.92 kB / 0.6289 GB, free: 74.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002908/0.8781, allocations: 2.517 MB / 0.6314 GB, free: 71.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.8781, allocations: 0 / 0.6314 GB, free: 71.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004508/0.8826, allocations: 1.293 MB / 0.6326 GB, free: 70.64 MB / 446.1 MB 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.008054/0.8906, allocations: 7.408 MB / 0.6399 GB, free: 62.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01108/0.9017, allocations: 7.023 MB / 0.6467 GB, free: 55.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/0.9018, allocations: 3.938 kB / 0.6467 GB, free: 55.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002914/0.9047, allocations: 2.408 MB / 0.6491 GB, free: 53.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004302/0.909, allocations: 0.9927 MB / 0.65 GB, free: 52.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2133/1.122, allocations: 55.42 MB / 0.7042 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004218/1.127, allocations: 4.493 MB / 0.7086 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003714/1.13, allocations: 1.362 MB / 0.7099 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002549/1.133, allocations: 2.544 MB / 0.7124 GB, free: 132.4 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/1.133, allocations: 0 / 0.7124 GB, free: 132.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1345/1.267, allocations: 106.3 MB / 0.8162 GB, free: 37.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/14.54, allocations: 12.67 kB / 0.8162 GB, free: 37.14 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)