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_Mains.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_Mains,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",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.0009572/0.0009573, allocations: 90.78 kB / 16.93 MB, free: 5.98 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.0009929/0.0009931, allocations: 180.4 kB / 17.82 MB, free: 5.648 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.263/1.263, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004498/0.0004498, allocations: 20.78 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09157/0.09203, allocations: 47.56 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03118/0.1233, allocations: 29.9 MB / 358.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01894/0.1423, allocations: 9.641 MB / 368 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006046/0.1483, allocations: 219.2 kB / 368.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007735/0.1561, allocations: 1.998 MB / 370.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01406/0.1702, allocations: 3.439 MB / 373.6 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006479/0.1767, allocations: 1.544 MB / 375.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.205/0.3817, allocations: 11.28 MB / 386.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03765/0.4194, allocations: 20.19 MB / 406.6 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00926/0.4288, allocations: 4.856 MB / 411.5 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009369/0.4382, allocations: 5.395 MB / 416.9 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003473/0.4417, allocations: 0.7891 MB / 417.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00647/0.4482, allocations: 1.093 MB / 418.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004443/0.4527, allocations: 2.474 MB / 421.3 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005344/0.458, allocations: 2.65 MB / 423.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02437/0.4824, allocations: 22.57 MB / 446.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.4825, allocations: 0 / 446.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4825, allocations: 0 / 446.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0008319/0.4833, allocations: 0 / 446.5 MB, free: 1.141 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.03775/0.5211, allocations: 13.41 MB / 459.9 MB, free: 4.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.5211, allocations: 11.97 kB / 459.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006779/0.5279, allocations: 1.957 MB / 461.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04062/0.5686, allocations: 7.312 MB / 469.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01889/0.5875, allocations: 7.619 MB / 476.8 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001065/0.5886, allocations: 0.9156 MB / 477.7 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005991/0.5946, allocations: 1.201 MB / 478.9 MB, free: 2.188 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04977/0.6444, allocations: 19.07 MB / 498 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005225/0.645, allocations: 11.81 kB / 498 MB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003765/0.6488, allocations: 0.4978 MB / 498.5 MB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000692/0.6495, allocations: 0.6892 MB / 499.2 MB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03822/0.6877, allocations: 17.61 MB / 0.5047 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4785/1.166, allocations: 63.94 MB / 0.5671 GB, free: 91.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02724/1.194, allocations: 38.63 MB / 0.6048 GB, free: 56.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02369/1.217, allocations: 12.04 MB / 0.6166 GB, free: 48.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.435e-05/1.217, allocations: 88.8 kB / 0.6167 GB, free: 48.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=416): time 5.781e-06/1.217, allocations: 0 / 0.6167 GB, free: 48.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=426): time 0.03908/1.256, allocations: 20.54 MB / 0.6367 GB, free: 35.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.885e-05/1.257, allocations: 120.8 kB / 0.6368 GB, free: 34.99 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007416/1.264, allocations: 5.154 MB / 0.6419 GB, free: 29.85 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009374/1.265, allocations: 97.7 kB / 0.642 GB, free: 29.75 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002697/1.268, allocations: 5.476 MB / 0.6473 GB, free: 24.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001678/1.269, allocations: 1.473 MB / 0.6488 GB, free: 22.78 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003842/1.27, allocations: 140 kB / 0.6489 GB, free: 22.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002762/1.27, allocations: 0.5716 MB / 0.6495 GB, free: 22.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003883/1.274, allocations: 2.961 MB / 0.6523 GB, free: 19.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004814/1.279, allocations: 5.66 MB / 0.6579 GB, free: 12.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005143/1.284, allocations: 4.197 MB / 0.662 GB, free: 7.965 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-05/1.284, allocations: 24 kB / 0.662 GB, free: 7.941 MB / 430.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.01469/1.299, allocations: 10.1 MB / 0.6719 GB, free: 13.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.302e-05/1.299, allocations: 44 kB / 0.6719 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000161/1.299, allocations: 91.94 kB / 0.672 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00305/1.302, allocations: 1.132 MB / 0.6731 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00595/1.308, allocations: 1.544 MB / 0.6746 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01505/1.323, allocations: 12.74 MB / 0.687 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006162/1.329, allocations: 367.5 kB / 0.6874 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/1.331, allocations: 348 kB / 0.6877 GB, free: 12.97 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 411 * 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 (813): * Single equations (assignments): 804 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(10,53.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009743/1.341, allocations: 4.301 MB / 0.6919 GB, free: 8.652 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001455/1.342, allocations: 0.5457 MB / 0.6925 GB, free: 8.102 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/1.355, allocations: 7.294 MB / 0.6996 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2156/1.571, allocations: 4.326 MB / 0.7038 GB, free: 139.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-05/1.571, allocations: 12.88 kB / 0.7038 GB, free: 139.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.504e-05/1.571, allocations: 26.98 kB / 0.7038 GB, free: 139.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03479/1.606, allocations: 17.24 MB / 0.7207 GB, free: 135 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-05/1.606, allocations: 3.938 kB / 0.7207 GB, free: 135 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003112/1.609, allocations: 0.7072 MB / 0.7214 GB, free: 134.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003129/1.612, allocations: 1.173 MB / 0.7225 GB, free: 134.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004668/1.613, allocations: 102 kB / 0.7226 GB, free: 134.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01571/1.628, allocations: 16.25 MB / 0.7385 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.629, allocations: 7.219 kB / 0.7385 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01526/1.644, allocations: 11.18 MB / 0.7494 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003454/1.647, allocations: 1.138 MB / 0.7505 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001356/1.649, allocations: 94.64 kB / 0.7506 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003051/1.652, allocations: 221.8 kB / 0.7508 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007246/1.652, allocations: 311.8 kB / 0.7511 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002864/1.653, allocations: 127.4 kB / 0.7512 GB, free: 116.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005529/1.658, allocations: 3.423 MB / 0.7546 GB, free: 115.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.658, allocations: 1.531 kB / 0.7546 GB, free: 115.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009042/1.667, allocations: 1.988 MB / 0.7565 GB, free: 115.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi) * 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 (364): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01546/1.683, allocations: 12.9 MB / 0.7691 GB, free: 103.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01123/1.694, allocations: 7.957 MB / 0.7769 GB, free: 95.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/1.694, allocations: 4 kB / 0.7769 GB, free: 95.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005645/1.7, allocations: 4.157 MB / 0.781 GB, free: 91.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006181/1.706, allocations: 1.316 MB / 0.7822 GB, free: 89.85 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3468/2.053, allocations: 124 MB / 0.9033 GB, free: 151.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01151/2.064, allocations: 7.654 MB / 0.9108 GB, free: 149.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007476/2.072, allocations: 2.096 MB / 0.9129 GB, free: 148.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007552/2.079, allocations: 4.414 MB / 0.9172 GB, free: 144.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/2.079, allocations: 0 / 0.9172 GB, free: 144.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4296/2.509, allocations: 154.1 MB / 1.068 GB, free: 113.1 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/2.509, allocations: 266.8 kB / 1.068 GB, free: 112.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.503/8.012, allocations: 3.938 kB / 1.068 GB, free: 112.8 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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_Mains_res.mat does not exist to compare? outputFormat=mat