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.001418/0.001418, allocations: 109.5 kB / 17.73 MB, free: 5.344 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.002145/0.002145, allocations: 192.1 kB / 18.66 MB, free: 4.418 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.381/1.381, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001757/0.001757, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08548/0.08724, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2009/0.2882, allocations: 30.24 MB / 404.9 MB, free: 9.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01811/0.3064, allocations: 8.644 MB / 413.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005793/0.3123, allocations: 169 kB / 413.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01242/0.3247, allocations: 4.894 MB / 418.6 MB, free: 372 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01064/0.3354, allocations: 2.953 MB / 421.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005502/0.3409, allocations: 1.609 MB / 423.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.353, allocations: 8.713 MB / 431.9 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01854/0.3715, allocations: 12.82 MB / 444.7 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007383/0.379, allocations: 4.238 MB / 448.9 MB, free: 5.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00799/0.387, allocations: 4.737 MB / 453.7 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003067/0.3901, allocations: 1.164 MB / 454.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004796/0.3949, allocations: 1.519 MB / 456.4 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003363/0.3983, allocations: 2.412 MB / 458.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00778/0.4061, allocations: 4.673 MB / 463.4 MB, free: 7.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.018/0.4241, allocations: 15.72 MB / 479.2 MB, free: 7.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4242, allocations: 0 / 479.2 MB, free: 7.406 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4242, allocations: 0 / 479.2 MB, free: 7.406 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003905/0.4246, allocations: 4 kB / 479.2 MB, free: 7.402 MB / 398.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.02954/0.4541, allocations: 9.755 MB / 488.9 MB, free: 13.55 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.4542, allocations: 12.03 kB / 488.9 MB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003589/0.4578, allocations: 1.148 MB / 490.1 MB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02876/0.4866, allocations: 5.274 MB / 495.4 MB, free: 7.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01296/0.4996, allocations: 4.691 MB / 0.4883 GB, free: 2.316 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005803/0.5002, allocations: 0.5377 MB / 0.4889 GB, free: 1.777 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002613/0.5028, allocations: 0.7068 MB / 0.4895 GB, free: 1.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02585/0.5287, allocations: 11.32 MB / 0.5006 GB, free: 5.672 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000328/0.5291, allocations: 23.8 kB / 0.5006 GB, free: 5.648 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001938/0.531, allocations: 296 kB / 0.5009 GB, free: 5.359 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004771/0.5315, allocations: 451 kB / 0.5013 GB, free: 4.918 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02165/0.5532, allocations: 10.81 MB / 0.5119 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06385/0.617, allocations: 37.59 MB / 0.5486 GB, free: 3.375 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1847/0.8018, allocations: 28.09 MB / 0.576 GB, free: 115.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004098/0.8059, allocations: 2.67 MB / 0.5786 GB, free: 115.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01373/0.8197, allocations: 7.903 MB / 0.5864 GB, free: 111.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.8198, allocations: 58.41 kB / 0.5864 GB, free: 111.6 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 4.539e-06/0.8198, allocations: 0 / 0.5864 GB, free: 111.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.01838/0.8382, allocations: 10.37 MB / 0.5965 GB, free: 107.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001476/0.8397, allocations: 2.01 MB / 0.5985 GB, free: 105.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005199/0.8449, allocations: 3.826 MB / 0.6022 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003266/0.8452, allocations: 61.64 kB / 0.6023 GB, free: 103.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001613/0.8469, allocations: 3.557 MB / 0.6058 GB, free: 101.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005847/0.8474, allocations: 0.826 MB / 0.6066 GB, free: 100.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001075/0.8485, allocations: 0.9505 MB / 0.6075 GB, free: 100.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.749e-05/0.8486, allocations: 309.1 kB / 0.6078 GB, free: 99.76 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002181/0.8508, allocations: 1.892 MB / 0.6096 GB, free: 99.04 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002809/0.8536, allocations: 4.396 MB / 0.6139 GB, free: 94.93 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005399/0.859, allocations: 6.782 MB / 0.6206 GB, free: 89.47 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.243e-05/0.8591, allocations: 26.62 kB / 0.6206 GB, free: 89.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009126/0.8682, allocations: 6.98 MB / 0.6274 GB, free: 85.86 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.699e-05/0.8683, allocations: 44.25 kB / 0.6274 GB, free: 85.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.659e-05/0.8684, allocations: 88 kB / 0.6275 GB, free: 85.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.8701, allocations: 0.7396 MB / 0.6283 GB, free: 85.15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003068/0.8732, allocations: 1.121 MB / 0.6293 GB, free: 84.18 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00553/0.8787, allocations: 5.632 MB / 0.6348 GB, free: 78.41 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003612/0.8823, allocations: 307.1 kB / 0.6351 GB, free: 78.11 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004546/0.8828, allocations: 276 kB / 0.6354 GB, free: 77.84 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.003392/0.8862, allocations: 2.522 MB / 0.6379 GB, free: 75.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007725/0.887, allocations: 387.2 kB / 0.6382 GB, free: 74.92 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005823/0.8928, allocations: 4.268 MB / 0.6424 GB, free: 70.63 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.8929, allocations: 27.94 kB / 0.6424 GB, free: 70.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.8929, allocations: 8 kB / 0.6424 GB, free: 70.59 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.8929, allocations: 15.95 kB / 0.6425 GB, free: 70.58 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01942/0.9123, allocations: 14.28 MB / 0.6564 GB, free: 56.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/0.9124, allocations: 12 kB / 0.6564 GB, free: 56.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/0.914, allocations: 479.2 kB / 0.6569 GB, free: 55.63 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001731/0.9158, allocations: 0.6976 MB / 0.6575 GB, free: 54.93 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000165/0.916, allocations: 63.98 kB / 0.6576 GB, free: 54.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006901/0.9229, allocations: 7.498 MB / 0.6649 GB, free: 47.09 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001224/0.9241, allocations: 1.957 MB / 0.6668 GB, free: 44.98 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00793/0.932, allocations: 6.74 MB / 0.6734 GB, free: 37.96 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002129/0.9342, allocations: 0.7928 MB / 0.6742 GB, free: 37.14 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004828/0.9347, allocations: 63.75 kB / 0.6743 GB, free: 37.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001658/0.9364, allocations: 163.9 kB / 0.6744 GB, free: 36.93 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/0.9367, allocations: 225.4 kB / 0.6746 GB, free: 36.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001464/0.9369, allocations: 87.98 kB / 0.6747 GB, free: 36.62 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003032/0.9399, allocations: 2.513 MB / 0.6772 GB, free: 34.13 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9399, allocations: 0 / 0.6772 GB, free: 34.13 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004197/0.9441, allocations: 1.292 MB / 0.6784 GB, free: 32.84 MB / 478.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.007772/0.9519, allocations: 7.418 MB / 0.6857 GB, free: 25.13 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006277/0.9582, allocations: 5.168 MB / 0.6907 GB, free: 19.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/0.9582, allocations: 256 / 0.6907 GB, free: 19.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002878/0.9611, allocations: 2.42 MB / 0.6931 GB, free: 17.46 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004259/0.9654, allocations: 0.9889 MB / 0.6941 GB, free: 16.47 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2283/1.194, allocations: 46.01 MB / 0.739 GB, free: 167.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005762/1.199, allocations: 4.499 MB / 0.7434 GB, free: 167.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003873/1.203, allocations: 1.357 MB / 0.7447 GB, free: 167 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002942/1.206, allocations: 2.542 MB / 0.7472 GB, free: 166 MB / 0.4981 GB Notification: Performance of SimCode: time 8.01e-07/1.206, allocations: 1.438 kB / 0.7472 GB, free: 166 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1365/1.343, allocations: 104.5 MB / 0.8492 GB, free: 80.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.31/22.65, allocations: 4.828 kB / 0.8492 GB, free: 80.32 MB / 0.4981 GB (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)