Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001601/0.001601, allocations: 181.1 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001122, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.898e-05/2.904e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09744, allocations: 47.58 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5222/0.6197, allocations: 118.8 MB / 488 MB, free: 7.137 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.6201, allocations: 87.33 kB / 488 MB, free: 7.094 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6092/1.229, allocations: 80.39 MB / 0.5551 GB, free: 93.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.229, allocations: 3.906 kB / 0.5551 GB, free: 93.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003983/1.23, allocations: 94.06 kB / 0.5552 GB, free: 93.12 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01364/1.243, allocations: 3.449 MB / 0.5586 GB, free: 91.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/1.244, allocations: 9.844 kB / 0.5586 GB, free: 91.7 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001961/1.246, allocations: 495 kB / 0.5591 GB, free: 91.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005174/1.251, allocations: 0.6411 MB / 0.5597 GB, free: 91.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01318/1.264, allocations: 3.354 MB / 0.563 GB, free: 90.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003814/1.264, allocations: 264 kB / 0.5632 GB, free: 90.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00158/1.266, allocations: 347.1 kB / 0.5635 GB, free: 90.83 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01501/1.281, allocations: 4.329 MB / 0.5678 GB, free: 90.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001807/1.281, allocations: 15.67 kB / 0.5678 GB, free: 90.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001166/1.282, allocations: 146.7 kB / 0.5679 GB, free: 90.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002131/1.283, allocations: 159.5 kB / 0.5681 GB, free: 90.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01149/1.294, allocations: 3.434 MB / 0.5714 GB, free: 88.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0384/1.333, allocations: 14.59 MB / 0.5857 GB, free: 81.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007553/1.34, allocations: 5.335 MB / 0.5909 GB, free: 76.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003381/1.344, allocations: 1.265 MB / 0.5921 GB, free: 75.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/1.355, allocations: 3.855 MB / 0.5959 GB, free: 73.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/1.355, allocations: 46.19 kB / 0.5959 GB, free: 73.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=126): time 4.629e-06/1.355, allocations: 0 / 0.5959 GB, free: 73.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=130): time 0.01147/1.367, allocations: 4.25 MB / 0.6001 GB, free: 71.44 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/1.367, allocations: 63.81 kB / 0.6001 GB, free: 71.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004635/1.372, allocations: 1.827 MB / 0.6019 GB, free: 70.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003576/1.372, allocations: 48.98 kB / 0.602 GB, free: 70.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001217/1.373, allocations: 1.57 MB / 0.6035 GB, free: 69.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006642/1.374, allocations: 455.5 kB / 0.6039 GB, free: 68.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/1.374, allocations: 35.88 kB / 0.604 GB, free: 68.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/1.374, allocations: 380.1 kB / 0.6043 GB, free: 68.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001745/1.376, allocations: 0.6949 MB / 0.605 GB, free: 68.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0022/1.378, allocations: 1.306 MB / 0.6063 GB, free: 67.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002258/1.381, allocations: 0.9319 MB / 0.6072 GB, free: 66.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/1.381, allocations: 7.531 kB / 0.6072 GB, free: 66.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005672/1.386, allocations: 2.31 MB / 0.6095 GB, free: 65.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.085e-05/1.386, allocations: 15.42 kB / 0.6095 GB, free: 65.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.643e-05/1.387, allocations: 20 kB / 0.6095 GB, free: 65.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005353/1.387, allocations: 142.5 kB / 0.6096 GB, free: 65.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003449/1.391, allocations: 461.8 kB / 0.6101 GB, free: 64.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002975/1.394, allocations: 3.081 MB / 0.6131 GB, free: 61.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002935/1.397, allocations: 112.2 kB / 0.6132 GB, free: 61.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000381/1.397, allocations: 87.8 kB / 0.6133 GB, free: 61.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 220 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004477/1.397, allocations: 220.3 kB / 0.6135 GB, free: 61.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006848/1.398, allocations: 213.3 kB / 0.6137 GB, free: 61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005373/1.404, allocations: 2.155 MB / 0.6158 GB, free: 59.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/1.404, allocations: 12 kB / 0.6158 GB, free: 59.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/1.404, allocations: 4 kB / 0.6158 GB, free: 59.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.467e-05/1.404, allocations: 6.375 kB / 0.6158 GB, free: 59.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01375/1.417, allocations: 5.143 MB / 0.6208 GB, free: 54.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/1.418, allocations: 3.938 kB / 0.6208 GB, free: 54.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002075/1.42, allocations: 228 kB / 0.6211 GB, free: 54.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001217/1.421, allocations: 274.7 kB / 0.6213 GB, free: 54.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002702/1.421, allocations: 31.62 kB / 0.6213 GB, free: 54.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007963/1.429, allocations: 7.104 MB / 0.6283 GB, free: 46.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/1.429, allocations: 7.406 kB / 0.6283 GB, free: 46.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007217/1.436, allocations: 3.294 MB / 0.6315 GB, free: 43.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001771/1.438, allocations: 466.8 kB / 0.632 GB, free: 43.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006041/1.439, allocations: 28 kB / 0.632 GB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/1.441, allocations: 82.92 kB / 0.6321 GB, free: 43.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005033/1.442, allocations: 90.23 kB / 0.6321 GB, free: 43.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/1.442, allocations: 39.89 kB / 0.6322 GB, free: 43.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003638/1.446, allocations: 1.397 MB / 0.6335 GB, free: 41.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.623e-06/1.446, allocations: 0 / 0.6335 GB, free: 41.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003779/1.45, allocations: 0.609 MB / 0.6341 GB, free: 41.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009022/1.459, allocations: 4.82 MB / 0.6388 GB, free: 36.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004976/1.464, allocations: 2.04 MB / 0.6408 GB, free: 34.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.464, allocations: 0.9375 kB / 0.6408 GB, free: 34.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003341/1.467, allocations: 1.354 MB / 0.6422 GB, free: 33.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004453/1.472, allocations: 0.5018 MB / 0.6427 GB, free: 33.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/1.49, allocations: 5.698 MB / 0.6482 GB, free: 28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003726/1.494, allocations: 2.433 MB / 0.6506 GB, free: 25.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00334/1.497, allocations: 1.323 MB / 0.6519 GB, free: 24.64 MB / 410.7 MB Notification: Performance of SimCode: time 1.663e-06/1.497, allocations: 0 / 0.6519 GB, free: 24.64 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.365/5.863, allocations: 112.5 MB / 0.7618 GB, free: 74.96 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat