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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.001108/0.001108, allocations: 96.36 kB / 16.95 MB, free: 6.891 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.001159/0.001159, allocations: 185.9 kB / 17.84 MB, free: 6.137 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.565/1.565, 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.00045/0.0004501, allocations: 12 kB / 280.9 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09758/0.09804, allocations: 47.58 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03803/0.1361, allocations: 36.51 MB / 365 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02703/0.1632, allocations: 10.28 MB / 375.3 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009338/0.1726, allocations: 251.1 kB / 375.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008489/0.1811, allocations: 1.782 MB / 377.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2337/0.4149, allocations: 3.132 MB / 380.4 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009539/0.4244, allocations: 1.609 MB / 382 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03096/0.4554, allocations: 14.77 MB / 396.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0402/0.4957, allocations: 20.28 MB / 417.1 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01247/0.5082, allocations: 5.138 MB / 422.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01282/0.5211, allocations: 6.125 MB / 428.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004564/0.5257, allocations: 0.793 MB / 429.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008876/0.5346, allocations: 1.162 MB / 430.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006577/0.5413, allocations: 2.678 MB / 433 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008978/0.5503, allocations: 2.674 MB / 435.7 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02942/0.5798, allocations: 22.57 MB / 458.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.5798, allocations: 0 / 458.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.709e-06/0.5798, allocations: 2.078 kB / 458.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0009256/0.5808, allocations: 0 / 458.2 MB, free: 4.086 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04207/0.6228, allocations: 13.34 MB / 471.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.737e-05/0.6229, allocations: 8.031 kB / 471.6 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009348/0.6323, allocations: 1.852 MB / 473.4 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04965/0.682, allocations: 9.208 MB / 482.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02023/0.7023, allocations: 7.547 MB / 490.2 MB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001358/0.7037, allocations: 0.9757 MB / 491.2 MB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005865/0.7096, allocations: 1.286 MB / 492.5 MB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06167/0.7713, allocations: 20.41 MB / 0.5008 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007077/0.7721, allocations: 34.09 kB / 0.5009 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00503/0.7771, allocations: 0.5207 MB / 0.5014 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001053/0.7782, allocations: 0.7572 MB / 0.5021 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04688/0.8251, allocations: 19.13 MB / 0.5208 GB, free: 9.16 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5153/1.34, allocations: 65.19 MB / 0.5845 GB, free: 84.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03037/1.371, allocations: 57.22 MB / 0.6404 GB, free: 26.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006969/1.378, allocations: 4.19 MB / 0.6444 GB, free: 24.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01899/1.397, allocations: 11.69 MB / 0.6559 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.517e-05/1.397, allocations: 73.41 kB / 0.6559 GB, free: 12.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=361): time 5.731e-06/1.397, allocations: 3.984 kB / 0.6559 GB, free: 12.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=403): time 0.03875/1.436, allocations: 18.78 MB / 0.6743 GB, free: 9.613 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.026e-05/1.436, allocations: 94.58 kB / 0.6744 GB, free: 9.508 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009666/1.446, allocations: 5.643 MB / 0.6799 GB, free: 3.891 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007706/1.446, allocations: 89.7 kB / 0.68 GB, free: 3.797 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004934/1.451, allocations: 6.054 MB / 0.6859 GB, free: 13.71 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001856/1.453, allocations: 1.421 MB / 0.6873 GB, free: 12.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005756/1.454, allocations: 160 kB / 0.6874 GB, free: 12.14 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004991/1.454, allocations: 0.613 MB / 0.688 GB, free: 11.53 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005392/1.46, allocations: 3.115 MB / 0.6911 GB, free: 8.41 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009172/1.469, allocations: 6.869 MB / 0.6978 GB, free: 15.75 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008319/1.477, allocations: 4.648 MB / 0.7023 GB, free: 11.08 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/1.477, allocations: 36 kB / 0.7023 GB, free: 11.04 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02498/1.502, allocations: 10.96 MB / 0.713 GB, free: 20 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.2491/1.751, allocations: 59.14 kB / 0.7131 GB, free: 158.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003891/1.752, allocations: 129.6 kB / 0.7132 GB, free: 158.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004357/1.756, allocations: 0.9943 MB / 0.7142 GB, free: 158.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01056/1.767, allocations: 1.856 MB / 0.716 GB, free: 158.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01843/1.785, allocations: 9.525 MB / 0.7253 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007392/1.793, allocations: 452 kB / 0.7257 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001982/1.795, allocations: 429.8 kB / 0.7261 GB, free: 154.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01187/1.807, allocations: 4.521 MB / 0.7306 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002402/1.809, allocations: 0.57 MB / 0.7311 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01466/1.824, allocations: 6.699 MB / 0.7377 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.579e-05/1.824, allocations: 39.44 kB / 0.7377 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.224e-05/1.824, allocations: 7.906 kB / 0.7377 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.772e-05/1.824, allocations: 24.44 kB / 0.7377 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03166/1.856, allocations: 16.47 MB / 0.7538 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/1.856, allocations: 3.844 kB / 0.7538 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003114/1.859, allocations: 0.7764 MB / 0.7546 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/1.861, allocations: 0.793 MB / 0.7553 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005193/1.861, allocations: 87.58 kB / 0.7554 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00847/1.87, allocations: 8.658 MB / 0.7639 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.87, allocations: 8 kB / 0.7639 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01443/1.884, allocations: 9.788 MB / 0.7734 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003254/1.888, allocations: 1.145 MB / 0.7746 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001544/1.889, allocations: 73.2 kB / 0.7746 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003023/1.892, allocations: 231.2 kB / 0.7749 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005681/1.893, allocations: 276.9 kB / 0.7751 GB, free: 125.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000254/1.893, allocations: 124 kB / 0.7752 GB, free: 125.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006554/1.9, allocations: 3.703 MB / 0.7789 GB, free: 121.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.9, allocations: 0 / 0.7789 GB, free: 121.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01089/1.911, allocations: 2.04 MB / 0.7808 GB, free: 119.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01482/1.926, allocations: 10.52 MB / 0.7911 GB, free: 109 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01305/1.939, allocations: 8.19 MB / 0.7991 GB, free: 100.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.939, allocations: 4 kB / 0.7991 GB, free: 100.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006388/1.945, allocations: 3.609 MB / 0.8026 GB, free: 97.04 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009866/1.955, allocations: 1.346 MB / 0.804 GB, free: 95.72 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1474/2.102, allocations: 66.13 MB / 0.8685 GB, free: 25.18 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01702/2.12, allocations: 7.696 MB / 0.8761 GB, free: 17.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.009329/2.129, allocations: 2.401 MB / 0.8784 GB, free: 15.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2333/2.362, allocations: 4.685 MB / 0.883 GB, free: 148.8 MB / 478.1 MB Notification: Performance of SimCode: time 2.104e-06/2.362, allocations: 3.812 kB / 0.883 GB, free: 148.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.217/2.579, allocations: 155.3 MB / 1.035 GB, free: 22.06 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/2.58, allocations: 267.8 kB / 1.035 GB, free: 21.71 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.747/8.326, allocations: 0 / 1.035 GB, free: 21.71 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource_res.mat does not exist to compare? outputFormat=mat