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.00119/0.00119, allocations: 114.2 kB / 17.28 MB, free: 6.219 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.001335/0.001335, allocations: 189.3 kB / 18.2 MB, free: 5.301 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.256/1.256, allocations: 205.1 MB / 224 MB, free: 12.45 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.001042/0.001042, allocations: 51.92 kB / 280.3 MB, free: 3.371 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.07988, allocations: 46.62 MB / 326.9 MB, free: 4.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03303/0.113, allocations: 29.75 MB / 356.7 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02092/0.134, allocations: 8.523 MB / 365.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005756/0.1398, allocations: 159.5 kB / 365.3 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01122/0.1511, allocations: 4.579 MB / 369.9 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009595/0.1607, allocations: 2.663 MB / 372.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004596/0.1653, allocations: 1.489 MB / 374.1 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1679/0.3332, allocations: 8.764 MB / 382.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01896/0.3522, allocations: 14.35 MB / 397.2 MB, free: 11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00619/0.3585, allocations: 4.19 MB / 401.4 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006819/0.3653, allocations: 4.775 MB / 406.1 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002014/0.3674, allocations: 1.162 MB / 407.3 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003182/0.3705, allocations: 1.531 MB / 408.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001561/0.3721, allocations: 2.405 MB / 411.2 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004791/0.3769, allocations: 4.675 MB / 415.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01779/0.3947, allocations: 15.9 MB / 431.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3948, allocations: 0 / 431.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3948, allocations: 4 kB / 431.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003306/0.3951, allocations: 0 / 431.8 MB, free: 4.047 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.02604/0.4212, allocations: 9.78 MB / 441.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.4212, allocations: 8.031 kB / 441.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003953/0.4252, allocations: 1.147 MB / 442.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02882/0.454, allocations: 5.259 MB / 448 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/0.465, allocations: 4.656 MB / 452.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00064/0.4657, allocations: 0.5286 MB / 453.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003034/0.4688, allocations: 0.7051 MB / 453.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02868/0.4975, allocations: 11.32 MB / 465.2 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004315/0.498, allocations: 15.89 kB / 465.2 MB, free: 2.801 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002509/0.5005, allocations: 302 kB / 465.5 MB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000504/0.501, allocations: 450.8 kB / 466 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02268/0.5237, allocations: 10.81 MB / 476.8 MB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06445/0.5882, allocations: 37.99 MB / 0.5027 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/0.6085, allocations: 28.12 MB / 0.5302 GB, free: 0.875 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1896/0.7981, allocations: 2.645 MB / 0.5328 GB, free: 152.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01262/0.8108, allocations: 7.928 MB / 0.5405 GB, free: 149.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.669e-05/0.8108, allocations: 62.66 kB / 0.5406 GB, free: 149.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.546e-06/0.8109, allocations: 2.188 kB / 0.5406 GB, free: 149.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01664/0.8275, allocations: 10.36 MB / 0.5507 GB, free: 144.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001437/0.829, allocations: 2.005 MB / 0.5526 GB, free: 143 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004552/0.8335, allocations: 3.82 MB / 0.5564 GB, free: 141.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001805/0.8337, allocations: 69.55 kB / 0.5564 GB, free: 141.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001487/0.8352, allocations: 3.55 MB / 0.5599 GB, free: 138.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004875/0.8357, allocations: 0.8308 MB / 0.5607 GB, free: 138.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.8368, allocations: 0.954 MB / 0.5616 GB, free: 137.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.41e-05/0.8368, allocations: 301.1 kB / 0.5619 GB, free: 137.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002256/0.8391, allocations: 1.892 MB / 0.5638 GB, free: 136.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002923/0.842, allocations: 4.392 MB / 0.5681 GB, free: 132.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005337/0.8474, allocations: 6.791 MB / 0.5747 GB, free: 127.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.874e-05/0.8474, allocations: 25.88 kB / 0.5747 GB, free: 127.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009542/0.857, allocations: 6.98 MB / 0.5815 GB, free: 123.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.684e-05/0.8571, allocations: 44.94 kB / 0.5816 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.092e-05/0.8572, allocations: 84 kB / 0.5817 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/0.8588, allocations: 0.7424 MB / 0.5824 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003059/0.8619, allocations: 1.118 MB / 0.5835 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005509/0.8674, allocations: 5.648 MB / 0.589 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003521/0.8709, allocations: 313.8 kB / 0.5893 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005603/0.8715, allocations: 271.8 kB / 0.5896 GB, free: 116.1 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.003633/0.8752, allocations: 2.521 MB / 0.592 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007988/0.876, allocations: 383.3 kB / 0.5924 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006306/0.8823, allocations: 4.282 MB / 0.5966 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.8823, allocations: 24 kB / 0.5966 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.8824, allocations: 8 kB / 0.5966 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/0.8824, allocations: 11.95 kB / 0.5966 GB, free: 108.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01801/0.9004, allocations: 14.29 MB / 0.6106 GB, free: 94.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.9004, allocations: 12 kB / 0.6106 GB, free: 94.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/0.9021, allocations: 480.8 kB / 0.611 GB, free: 93.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.9037, allocations: 0.693 MB / 0.6117 GB, free: 93.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001422/0.9039, allocations: 67.98 kB / 0.6118 GB, free: 93.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006562/0.9105, allocations: 7.499 MB / 0.6191 GB, free: 85.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001176/0.9117, allocations: 1.958 MB / 0.621 GB, free: 83.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007192/0.9189, allocations: 6.735 MB / 0.6276 GB, free: 76.26 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/0.9201, allocations: 0.7928 MB / 0.6284 GB, free: 75.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004472/0.9206, allocations: 56 kB / 0.6284 GB, free: 75.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/0.9222, allocations: 171.9 kB / 0.6286 GB, free: 75.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003407/0.9225, allocations: 213.5 kB / 0.6288 GB, free: 75.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/0.9227, allocations: 91.92 kB / 0.6289 GB, free: 74.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002681/0.9254, allocations: 2.513 MB / 0.6313 GB, free: 72.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.9254, allocations: 0 / 0.6313 GB, free: 72.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003619/0.929, allocations: 1.29 MB / 0.6326 GB, free: 71.14 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.007242/0.9363, allocations: 7.412 MB / 0.6398 GB, free: 63.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01019/0.9465, allocations: 7.014 MB / 0.6467 GB, free: 56.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.9465, allocations: 7.938 kB / 0.6467 GB, free: 56.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002689/0.9492, allocations: 2.418 MB / 0.649 GB, free: 53.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00374/0.9529, allocations: 0.9861 MB / 0.65 GB, free: 52.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.216/1.169, allocations: 58.29 MB / 0.7069 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004312/1.173, allocations: 4.505 MB / 0.7113 GB, free: 129.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00373/1.177, allocations: 1.355 MB / 0.7127 GB, free: 129.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002579/1.18, allocations: 2.539 MB / 0.7151 GB, free: 127.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.713e-06/1.18, allocations: 0 / 0.7151 GB, free: 127.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1266/1.306, allocations: 106.2 MB / 0.8188 GB, free: 32.08 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/1.307, allocations: 310.7 kB / 0.8191 GB, free: 31.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.21/5.517, allocations: 0 / 0.8191 GB, free: 31.7 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)