Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_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_4_0_0_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.001535/0.001535, allocations: 109.1 kB / 16.51 MB, free: 6.707 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.001631/0.001631, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009608/0.0009608, allocations: 47.52 kB / 300.1 MB, free: 6.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.08937, allocations: 49.44 MB / 349.5 MB, free: 4.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1927/0.2821, allocations: 29.83 MB / 379.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01469/0.2969, allocations: 8.575 MB / 387.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005182/0.3021, allocations: 179 kB / 388.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01035/0.3125, allocations: 4.574 MB / 392.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008942/0.3214, allocations: 2.735 MB / 395.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004007/0.3255, allocations: 1.493 MB / 396.9 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01035/0.3358, allocations: 8.98 MB / 405.9 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01464/0.3505, allocations: 10.31 MB / 416.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005213/0.3557, allocations: 3.597 MB / 419.8 MB, free: 144 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00596/0.3617, allocations: 4.484 MB / 424.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001814/0.3635, allocations: 0.7305 MB / 425 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003816/0.3674, allocations: 1.089 MB / 426.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002449/0.3698, allocations: 1.974 MB / 428.1 MB, free: 7.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006268/0.3761, allocations: 4.208 MB / 432.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01409/0.3902, allocations: 15.4 MB / 447.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.3903, allocations: 4 kB / 447.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3903, allocations: 0 / 447.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003686/0.3906, allocations: 0 / 447.7 MB, free: 4.16 MB / 350.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.02525/0.4159, allocations: 9.771 MB / 457.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.416, allocations: 11.97 kB / 457.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002314/0.4183, allocations: 1.152 MB / 458.6 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02807/0.4464, allocations: 5.255 MB / 463.9 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009562/0.456, allocations: 4.956 MB / 468.8 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003719/0.4564, allocations: 0.5376 MB / 469.4 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001685/0.458, allocations: 0.7108 MB / 470.1 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01938/0.4774, allocations: 11.32 MB / 481.4 MB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000156/0.4776, allocations: 23.75 kB / 481.4 MB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007731/0.4784, allocations: 300 kB / 481.7 MB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003821/0.4788, allocations: 447 kB / 482.2 MB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01928/0.4981, allocations: 10.83 MB / 493 MB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05308/0.5512, allocations: 38 MB / 0.5185 GB, free: 15.44 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1741/0.7254, allocations: 28.09 MB / 0.546 GB, free: 121.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005468/0.7309, allocations: 2.642 MB / 0.5485 GB, free: 121.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01573/0.7467, allocations: 7.921 MB / 0.5563 GB, free: 118.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/0.7468, allocations: 61.06 kB / 0.5563 GB, free: 118.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.849e-06/0.7468, allocations: 2.812 kB / 0.5563 GB, free: 118.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01976/0.7665, allocations: 10.37 MB / 0.5665 GB, free: 113.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001735/0.7683, allocations: 1.91 MB / 0.5683 GB, free: 112 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00462/0.7729, allocations: 3.824 MB / 0.5721 GB, free: 110.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002132/0.7732, allocations: 69.52 kB / 0.5721 GB, free: 110.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001545/0.7747, allocations: 3.551 MB / 0.5756 GB, free: 107.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000548/0.7753, allocations: 0.8352 MB / 0.5764 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001073/0.7764, allocations: 0.9571 MB / 0.5774 GB, free: 106.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.946e-05/0.7764, allocations: 301.1 kB / 0.5776 GB, free: 106.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/0.7787, allocations: 1.886 MB / 0.5795 GB, free: 105.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00302/0.7818, allocations: 4.394 MB / 0.5838 GB, free: 101.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005458/0.7872, allocations: 6.786 MB / 0.5904 GB, free: 96.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.84e-05/0.7873, allocations: 22.62 kB / 0.5904 GB, free: 96.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009273/0.7966, allocations: 6.986 MB / 0.5972 GB, free: 93.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.164e-05/0.7966, allocations: 40 kB / 0.5973 GB, free: 93.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001045/0.7968, allocations: 88 kB / 0.5974 GB, free: 92.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001716/0.7985, allocations: 0.7458 MB / 0.5981 GB, free: 92.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003043/0.8015, allocations: 1.118 MB / 0.5992 GB, free: 91.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005552/0.8071, allocations: 5.234 MB / 0.6043 GB, free: 86.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003575/0.8107, allocations: 311.1 kB / 0.6046 GB, free: 85.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004205/0.8111, allocations: 269.5 kB / 0.6049 GB, free: 85.52 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.00336/0.8145, allocations: 2.523 MB / 0.6073 GB, free: 82.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007305/0.8152, allocations: 383.3 kB / 0.6077 GB, free: 82.61 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005994/0.8212, allocations: 4.28 MB / 0.6119 GB, free: 78.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.8213, allocations: 24 kB / 0.6119 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.8213, allocations: 8 kB / 0.6119 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.8213, allocations: 15.89 kB / 0.6119 GB, free: 78.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01668/0.838, allocations: 14.31 MB / 0.6259 GB, free: 63.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/0.838, allocations: 8 kB / 0.6259 GB, free: 63.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001663/0.8397, allocations: 483.2 kB / 0.6263 GB, free: 63.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001751/0.8415, allocations: 0.6895 MB / 0.627 GB, free: 62.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000144/0.8416, allocations: 67.98 kB / 0.6271 GB, free: 62.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006609/0.8482, allocations: 6.949 MB / 0.6339 GB, free: 55.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001253/0.8495, allocations: 1.864 MB / 0.6357 GB, free: 53.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008571/0.8581, allocations: 6.741 MB / 0.6423 GB, free: 46.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/0.8601, allocations: 0.7929 MB / 0.6431 GB, free: 45.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006356/0.8608, allocations: 59.94 kB / 0.6431 GB, free: 45.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/0.8626, allocations: 171.9 kB / 0.6433 GB, free: 45.24 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004228/0.8631, allocations: 213.5 kB / 0.6435 GB, free: 45.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001634/0.8632, allocations: 87.98 kB / 0.6436 GB, free: 44.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003591/0.8668, allocations: 2.513 MB / 0.646 GB, free: 42.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.8669, allocations: 0 / 0.646 GB, free: 42.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005095/0.872, allocations: 1.294 MB / 0.6473 GB, free: 41.16 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.009203/0.8812, allocations: 7.422 MB / 0.6545 GB, free: 33.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006806/0.888, allocations: 5.137 MB / 0.6595 GB, free: 28.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/0.8881, allocations: 0 / 0.6595 GB, free: 28.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003121/0.8912, allocations: 2.404 MB / 0.6619 GB, free: 25.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00453/0.8957, allocations: 0.937 MB / 0.6628 GB, free: 24.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2449/1.141, allocations: 58.27 MB / 0.7197 GB, free: 133.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00462/1.145, allocations: 4.498 MB / 0.7241 GB, free: 132.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003937/1.149, allocations: 1.358 MB / 0.7254 GB, free: 132.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002737/1.152, allocations: 2.541 MB / 0.7279 GB, free: 130 MB / 462.1 MB Notification: Performance of SimCode: time 1.031e-06/1.152, allocations: 2.734 kB / 0.7279 GB, free: 130 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1201/1.272, allocations: 104 MB / 0.8295 GB, free: 37.28 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001629/1.272, allocations: 322.6 kB / 0.8298 GB, free: 36.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.002/5.274, allocations: 0 / 0.8298 GB, free: 36.89 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)