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.0009824/0.0009825, allocations: 102.4 kB / 16.94 MB, free: 6.441 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.001252/0.001252, allocations: 184.2 kB / 17.83 MB, free: 6.004 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.367/1.367, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004482/0.0004482, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08353/0.08399, allocations: 47.58 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.022/0.106, allocations: 24.12 MB / 352.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01568/0.1218, allocations: 8.31 MB / 360.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00466/0.1265, allocations: 159.4 kB / 361 MB, free: 3.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005822/0.1323, allocations: 1.566 MB / 362.6 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01005/0.1424, allocations: 3.062 MB / 365.7 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005045/0.1475, allocations: 1.294 MB / 367 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.012/0.1595, allocations: 7.285 MB / 374.2 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1744/0.3339, allocations: 9.876 MB / 384.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004716/0.3387, allocations: 2.899 MB / 387 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005927/0.3446, allocations: 3.249 MB / 390.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001931/0.3466, allocations: 470.4 kB / 390.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003617/0.3502, allocations: 0.7477 MB / 391.5 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001485/0.3517, allocations: 1.5 MB / 393 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003513/0.3552, allocations: 1.583 MB / 394.6 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.3659, allocations: 13.01 MB / 407.6 MB, free: 7.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/0.366, allocations: 3.188 kB / 407.6 MB, free: 7.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.366, allocations: 1.406 kB / 407.6 MB, free: 7.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003667/0.3664, allocations: 0 / 407.6 MB, free: 7.484 MB / 318.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.02044/0.3868, allocations: 8.204 MB / 415.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3869, allocations: 7.594 kB / 415.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002704/0.3896, allocations: 1.144 MB / 416.9 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02636/0.4159, allocations: 5.18 MB / 422.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.428, allocations: 4.621 MB / 426.7 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00056/0.4286, allocations: 0.5314 MB / 427.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002777/0.4314, allocations: 0.7078 MB / 428 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02172/0.4531, allocations: 11.2 MB / 439.2 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001617/0.4533, allocations: 19.36 kB / 439.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007718/0.4541, allocations: 305.9 kB / 439.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004507/0.4546, allocations: 443.4 kB / 439.9 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0229/0.4775, allocations: 10.75 MB / 450.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05886/0.5363, allocations: 38.02 MB / 488.7 MB, free: 4.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01899/0.5554, allocations: 28.05 MB / 0.5046 GB, free: 4.352 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01317/0.5686, allocations: 7.915 MB / 0.5124 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.5686, allocations: 56.56 kB / 0.5124 GB, free: 12.37 MB / 430.1 MB Notification: Performance of pre-optimization done (n=222): time 3.276e-06/0.5687, allocations: 0 / 0.5124 GB, free: 12.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=238): time 0.0185/0.5872, allocations: 10.41 MB / 0.5226 GB, free: 1.957 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001827/0.589, allocations: 1.935 MB / 0.5245 GB, free: 15.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004998/0.594, allocations: 3.677 MB / 0.5281 GB, free: 12.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003016/0.5944, allocations: 69.7 kB / 0.5281 GB, free: 12.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002265/0.5966, allocations: 3.557 MB / 0.5316 GB, free: 8.574 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008389/0.5975, allocations: 0.8418 MB / 0.5324 GB, free: 7.738 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002202/0.5977, allocations: 100 kB / 0.5325 GB, free: 7.641 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000288/0.598, allocations: 0.497 MB / 0.533 GB, free: 7.137 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002831/0.6008, allocations: 1.895 MB / 0.5349 GB, free: 5.234 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.162/0.7628, allocations: 4.428 MB / 0.5392 GB, free: 147 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004671/0.7675, allocations: 2.851 MB / 0.542 GB, free: 147 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.788e-05/0.7676, allocations: 31.05 kB / 0.542 GB, free: 147 MB / 446.1 MB Notification: Performance of matching and sorting (n=640) (initialization): time 0.01026/0.7779, allocations: 7.038 MB / 0.5489 GB, free: 145.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.587e-05/0.778, allocations: 46.41 kB / 0.5489 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/0.7781, allocations: 89.84 kB / 0.549 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001802/0.7799, allocations: 0.7447 MB / 0.5497 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003589/0.7835, allocations: 1.158 MB / 0.5509 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006326/0.7898, allocations: 5.372 MB / 0.5561 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00368/0.7936, allocations: 316.6 kB / 0.5564 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000534/0.7941, allocations: 276.1 kB / 0.5567 GB, free: 142.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 403 * 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 (603): * Single equations (assignments): 600 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004125/0.7982, allocations: 2.533 MB / 0.5591 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007489/0.799, allocations: 381.3 kB / 0.5595 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006567/0.8056, allocations: 4.315 MB / 0.5637 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.8056, allocations: 23.44 kB / 0.5637 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.8056, allocations: 7.938 kB / 0.5637 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.071e-05/0.8057, allocations: 13.03 kB / 0.5638 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01909/0.8247, allocations: 14.32 MB / 0.5777 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/0.8248, allocations: 11.06 kB / 0.5778 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/0.8266, allocations: 497.3 kB / 0.5782 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/0.8283, allocations: 0.6839 MB / 0.5789 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001911/0.8285, allocations: 73.41 kB / 0.579 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006888/0.8354, allocations: 7.096 MB / 0.5859 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001218/0.8367, allocations: 1.886 MB / 0.5877 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008278/0.845, allocations: 8.12 MB / 0.5957 GB, free: 115.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0018/0.8468, allocations: 0.7926 MB / 0.5964 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000481/0.8473, allocations: 60 kB / 0.5965 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001587/0.8489, allocations: 171.9 kB / 0.5967 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003249/0.8492, allocations: 229.4 kB / 0.5969 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.8494, allocations: 91.97 kB / 0.597 GB, free: 114.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002895/0.8523, allocations: 2.396 MB / 0.5993 GB, free: 112 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8523, allocations: 0 / 0.5993 GB, free: 112 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003883/0.8561, allocations: 1.289 MB / 0.6006 GB, free: 110.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (249): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00817/0.8643, allocations: 11.6 MB / 0.6119 GB, free: 98.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0065/0.8709, allocations: 5.173 MB / 0.617 GB, free: 93.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.8709, allocations: 4 kB / 0.617 GB, free: 93.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002864/0.8738, allocations: 2.43 MB / 0.6193 GB, free: 90.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003546/0.8773, allocations: 0.912 MB / 0.6202 GB, free: 90 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2189/1.096, allocations: 98.52 MB / 0.7164 GB, free: 152.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004349/1.101, allocations: 4.623 MB / 0.7209 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00382/1.104, allocations: 1.401 MB / 0.7223 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002729/1.107, allocations: 2.562 MB / 0.7248 GB, free: 148.9 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/1.107, allocations: 0 / 0.7248 GB, free: 148.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1183/1.226, allocations: 100.3 MB / 0.8228 GB, free: 57.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/1.226, allocations: 278.4 kB / 0.823 GB, free: 57.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.103/5.329, allocations: 0 / 0.823 GB, free: 57.48 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat