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.001533/0.001534, allocations: 112.7 kB / 17.06 MB, free: 5.969 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.00163/0.00163, allocations: 200 kB / 18.01 MB, free: 5.051 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.408/1.408, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 48.06 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2772, allocations: 49.44 MB / 400.3 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03589/0.3132, allocations: 30.34 MB / 430.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02353/0.3368, allocations: 8.634 MB / 439.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007342/0.3441, allocations: 187.4 kB / 439.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01379/0.358, allocations: 4.911 MB / 444.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01127/0.3693, allocations: 2.968 MB / 447.3 MB, free: 9.719 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006254/0.3755, allocations: 1.605 MB / 448.9 MB, free: 8.121 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01542/0.391, allocations: 8.717 MB / 457.6 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02117/0.4122, allocations: 12.85 MB / 470.5 MB, free: 2.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007842/0.4201, allocations: 4.211 MB / 474.7 MB, free: 14.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00999/0.4301, allocations: 4.745 MB / 479.4 MB, free: 9.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003695/0.4339, allocations: 1.164 MB / 480.6 MB, free: 8.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005933/0.4398, allocations: 1.523 MB / 482.1 MB, free: 6.746 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004495/0.4444, allocations: 2.412 MB / 484.5 MB, free: 4.328 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01018/0.4546, allocations: 4.669 MB / 489.2 MB, free: 15.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02601/0.4806, allocations: 15.84 MB / 0.4932 GB, free: 15.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.808e-06/0.4807, allocations: 4 kB / 0.4932 GB, free: 15.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4807, allocations: 0 / 0.4932 GB, free: 15.75 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005322/0.4812, allocations: 0 / 0.4932 GB, free: 15.75 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.03343/0.5146, allocations: 9.925 MB / 0.5029 GB, free: 5.715 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.474e-05/0.5147, allocations: 8.031 kB / 0.5029 GB, free: 5.707 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004592/0.5193, allocations: 1.16 MB / 0.504 GB, free: 4.535 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03037/0.5497, allocations: 5.306 MB / 0.5092 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/0.5615, allocations: 5.126 MB / 0.5142 GB, free: 10.01 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005807/0.5621, allocations: 0.5338 MB / 0.5147 GB, free: 9.477 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002915/0.5651, allocations: 0.6991 MB / 0.5154 GB, free: 8.777 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02995/0.595, allocations: 11.33 MB / 0.5265 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002569/0.5953, allocations: 23.84 kB / 0.5265 GB, free: 13.35 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001552/0.5969, allocations: 292 kB / 0.5268 GB, free: 13.06 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000515/0.5974, allocations: 451 kB / 0.5272 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0258/0.6232, allocations: 10.83 MB / 0.5378 GB, free: 1.777 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3195/0.9428, allocations: 37.69 MB / 0.5746 GB, free: 95.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01412/0.957, allocations: 28.1 MB / 0.602 GB, free: 66.56 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00372/0.9607, allocations: 2.663 MB / 0.6047 GB, free: 63.89 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01074/0.9715, allocations: 7.918 MB / 0.6124 GB, free: 56.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.9716, allocations: 56.56 kB / 0.6124 GB, free: 55.96 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.628e-06/0.9716, allocations: 0 / 0.6124 GB, free: 55.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01739/0.989, allocations: 10.46 MB / 0.6226 GB, free: 45.78 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001499/0.9905, allocations: 2.009 MB / 0.6246 GB, free: 43.61 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004519/0.9951, allocations: 3.818 MB / 0.6283 GB, free: 39.86 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003118/0.9954, allocations: 65.7 kB / 0.6284 GB, free: 39.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.9969, allocations: 3.682 MB / 0.632 GB, free: 36.44 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000567/0.9974, allocations: 0.8671 MB / 0.6328 GB, free: 35.58 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/0.9985, allocations: 0.9614 MB / 0.6338 GB, free: 34.61 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.967e-05/0.9985, allocations: 305.1 kB / 0.6341 GB, free: 34.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002165/1.001, allocations: 1.891 MB / 0.6359 GB, free: 32.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003021/1.004, allocations: 4.385 MB / 0.6402 GB, free: 26.79 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005672/1.009, allocations: 6.795 MB / 0.6468 GB, free: 18.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-05/1.009, allocations: 28 kB / 0.6469 GB, free: 18.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009941/1.019, allocations: 7.002 MB / 0.6537 GB, free: 11.74 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/1.02, allocations: 43.94 kB / 0.6537 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.059e-05/1.02, allocations: 88.09 kB / 0.6538 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001697/1.021, allocations: 0.7386 MB / 0.6546 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003124/1.024, allocations: 1.115 MB / 0.6556 GB, free: 9.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005861/1.03, allocations: 5.645 MB / 0.6612 GB, free: 3.965 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003779/1.034, allocations: 319.4 kB / 0.6615 GB, free: 3.652 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005866/1.035, allocations: 271.9 kB / 0.6617 GB, free: 3.387 MB / 462.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.00335/1.038, allocations: 2.522 MB / 0.6642 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007086/1.039, allocations: 405.4 kB / 0.6646 GB, free: 464 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008032/1.047, allocations: 4.278 MB / 0.6687 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.573e-05/1.047, allocations: 27.84 kB / 0.6688 GB, free: 12.13 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.459e-05/1.047, allocations: 7.938 kB / 0.6688 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.631e-05/1.047, allocations: 15.95 kB / 0.6688 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02712/1.074, allocations: 14.28 MB / 0.6827 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.216e-05/1.074, allocations: 15.98 kB / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/1.076, allocations: 475.2 kB / 0.6832 GB, free: 13.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002228/1.078, allocations: 0.6897 MB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002716/1.079, allocations: 67.98 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/1.089, allocations: 7.503 MB / 0.6913 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002101/1.092, allocations: 1.949 MB / 0.6932 GB, free: 2.488 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01159/1.103, allocations: 6.77 MB / 0.6998 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002/1.105, allocations: 0.8106 MB / 0.7006 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006859/1.106, allocations: 63.94 kB / 0.7006 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/1.108, allocations: 171.9 kB / 0.7008 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004708/1.108, allocations: 225.3 kB / 0.701 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002059/1.109, allocations: 87.98 kB / 0.7011 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004235/1.113, allocations: 2.509 MB / 0.7036 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.91e-07/1.113, allocations: 4 kB / 0.7036 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005428/1.118, allocations: 1.281 MB / 0.7048 GB, free: 6.301 MB / 0.4981 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.01213/1.13, allocations: 7.451 MB / 0.7121 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009105/1.139, allocations: 5.165 MB / 0.7171 GB, free: 9.352 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.408e-05/1.14, allocations: 4 kB / 0.7171 GB, free: 9.348 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004348/1.144, allocations: 2.414 MB / 0.7195 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005042/1.149, allocations: 0.9866 MB / 0.7205 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2777/1.427, allocations: 46.23 MB / 0.7656 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004014/1.431, allocations: 4.496 MB / 0.77 GB, free: 174.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003564/1.434, allocations: 1.355 MB / 0.7713 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002903/1.437, allocations: 2.546 MB / 0.7738 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.503e-06/1.437, allocations: 0 / 0.7738 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1474/1.585, allocations: 103.9 MB / 0.8753 GB, free: 68.46 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.41/24, allocations: 8.375 kB / 0.8753 GB, free: 68.46 MB / 0.5294 GB (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)