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.002004/0.002004, allocations: 180 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.084/2.084, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001568/0.001568, allocations: 91.47 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.67e-05/2.667e-05, allocations: 0 / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3865/0.3866, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1929/0.5796, allocations: 118.1 MB / 480.5 MB, free: 44 kB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003452/0.58, allocations: 89.02 kB / 480.6 MB, free: 15.96 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5737/1.154, allocations: 79.36 MB / 0.5469 GB, free: 91.86 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.226e-06/1.154, allocations: 6.875 kB / 0.5469 GB, free: 91.86 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003818/1.154, allocations: 95.19 kB / 0.547 GB, free: 91.84 MB / 395.1 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.01352/1.168, allocations: 3.442 MB / 0.5503 GB, free: 89.58 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.181e-05/1.168, allocations: 7.469 kB / 0.5503 GB, free: 89.58 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005376/1.173, allocations: 0.6443 MB / 0.551 GB, free: 89.26 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/1.186, allocations: 3.357 MB / 0.5542 GB, free: 87.07 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/1.186, allocations: 117.8 kB / 0.5544 GB, free: 87.06 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00121/1.188, allocations: 212.3 kB / 0.5546 GB, free: 87.05 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009951/1.197, allocations: 3.197 MB / 0.5577 GB, free: 84.18 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/1.21, allocations: 3.827 MB / 0.5614 GB, free: 80.21 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/1.21, allocations: 7.938 kB / 0.5614 GB, free: 80.2 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004501/1.21, allocations: 4 kB / 0.5614 GB, free: 80.2 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001918/1.211, allocations: 162.8 kB / 0.5616 GB, free: 80.04 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03383/1.244, allocations: 13.91 MB / 0.5752 GB, free: 65.84 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006791/1.251, allocations: 5.349 MB / 0.5804 GB, free: 59.81 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002984/1.254, allocations: 1.221 MB / 0.5816 GB, free: 58.59 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/1.264, allocations: 3.842 MB / 0.5853 GB, free: 54.7 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/1.265, allocations: 43.88 kB / 0.5854 GB, free: 54.65 MB / 395.1 MB Notification: Performance of pre-optimization done (n=132): time 5.229e-06/1.265, allocations: 0 / 0.5854 GB, free: 54.65 MB / 395.1 MB Notification: Performance of matching and sorting (n=136): time 0.01134/1.276, allocations: 4.325 MB / 0.5896 GB, free: 50.23 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/1.276, allocations: 68.67 kB / 0.5897 GB, free: 50.15 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003411/1.279, allocations: 1.545 MB / 0.5912 GB, free: 48.57 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003398/1.28, allocations: 29.64 kB / 0.5912 GB, free: 48.53 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/1.281, allocations: 1.581 MB / 0.5927 GB, free: 46.93 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006101/1.282, allocations: 465.2 kB / 0.5932 GB, free: 46.47 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/1.282, allocations: 0 / 0.5932 GB, free: 46.47 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/1.282, allocations: 382.8 kB / 0.5936 GB, free: 46.09 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/1.283, allocations: 0.6717 MB / 0.5942 GB, free: 45.42 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0018/1.285, allocations: 1.276 MB / 0.5955 GB, free: 43.86 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002508/1.288, allocations: 0.986 MB / 0.5964 GB, free: 42.87 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/1.288, allocations: 12 kB / 0.5964 GB, free: 42.86 MB / 395.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.005528/1.293, allocations: 2.238 MB / 0.5986 GB, free: 40.59 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/1.293, allocations: 16 kB / 0.5986 GB, free: 40.57 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.253e-05/1.293, allocations: 20 kB / 0.5986 GB, free: 40.55 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000512/1.294, allocations: 134.5 kB / 0.5988 GB, free: 40.41 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00339/1.297, allocations: 479.5 kB / 0.5992 GB, free: 39.94 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/1.3, allocations: 2.954 MB / 0.6021 GB, free: 36.76 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002848/1.303, allocations: 71.81 kB / 0.6022 GB, free: 36.69 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003949/1.303, allocations: 87.98 kB / 0.6023 GB, free: 36.61 MB / 395.1 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 (229): * Single equations (assignments): 226 * 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.0004146/1.304, allocations: 164.4 kB / 0.6024 GB, free: 36.44 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005/1.309, allocations: 1.988 MB / 0.6044 GB, free: 34.4 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007078/1.31, allocations: 193.6 kB / 0.6046 GB, free: 34.21 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005569/1.315, allocations: 2.148 MB / 0.6067 GB, free: 31.99 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/1.315, allocations: 15.94 kB / 0.6067 GB, free: 31.98 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/1.315, allocations: 4 kB / 0.6067 GB, free: 31.97 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.628e-05/1.315, allocations: 11.97 kB / 0.6067 GB, free: 31.96 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/1.328, allocations: 4.756 MB / 0.6113 GB, free: 27.11 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/1.328, allocations: 0 / 0.6113 GB, free: 27.11 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002058/1.33, allocations: 247.6 kB / 0.6116 GB, free: 26.86 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/1.331, allocations: 267.5 kB / 0.6118 GB, free: 26.59 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001592/1.331, allocations: 15.98 kB / 0.6118 GB, free: 26.57 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007244/1.339, allocations: 6.819 MB / 0.6185 GB, free: 19.3 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/1.339, allocations: 4 kB / 0.6185 GB, free: 19.3 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007286/1.346, allocations: 3.333 MB / 0.6218 GB, free: 15.79 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/1.349, allocations: 454.5 kB / 0.6222 GB, free: 15.33 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009663/1.35, allocations: 11.95 kB / 0.6222 GB, free: 15.32 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003188/1.353, allocations: 63.89 kB / 0.6223 GB, free: 15.25 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006258/1.353, allocations: 93.11 kB / 0.6223 GB, free: 15.16 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002269/1.354, allocations: 43.98 kB / 0.6224 GB, free: 15.12 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.004551/1.358, allocations: 1.153 MB / 0.6235 GB, free: 13.95 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.483e-06/1.358, allocations: 0 / 0.6235 GB, free: 13.95 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005872/1.364, allocations: 0.5273 MB / 0.624 GB, free: 13.42 MB / 395.1 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 (114): * Single equations (assignments): 110 * 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.01306/1.377, allocations: 4.781 MB / 0.6287 GB, free: 8.535 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00596/1.383, allocations: 1.984 MB / 0.6306 GB, free: 6.512 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/1.384, allocations: 4 kB / 0.6306 GB, free: 6.508 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004079/1.388, allocations: 1.329 MB / 0.6319 GB, free: 5.141 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005021/1.393, allocations: 422.3 kB / 0.6323 GB, free: 4.723 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02753/1.42, allocations: 5.586 MB / 0.6378 GB, free: 15.05 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007505/1.428, allocations: 2.435 MB / 0.6402 GB, free: 12.59 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005335/1.433, allocations: 1.312 MB / 0.6415 GB, free: 11.27 MB / 411.1 MB Notification: Performance of SimCode: time 2.695e-06/1.433, allocations: 0 / 0.6415 GB, free: 11.27 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.224/5.658, allocations: 110.9 MB / 0.7497 GB, free: 35.74 MB / 411.1 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