Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001762/0.001762, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007771/0.000777, allocations: 90.44 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.471e-05/2.46e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1344, allocations: 47.58 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4884/0.6229, allocations: 118.3 MB / 481.5 MB, free: 9.719 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.6232, allocations: 91 kB / 481.6 MB, free: 9.672 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4836/1.107, allocations: 79.35 MB / 0.5478 GB, free: 90.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.107, allocations: 1.312 kB / 0.5478 GB, free: 90.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003884/1.107, allocations: 97.44 kB / 0.5479 GB, free: 90.7 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.01151/1.119, allocations: 3.451 MB / 0.5513 GB, free: 89.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/1.119, allocations: 11.62 kB / 0.5513 GB, free: 89.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004306/1.123, allocations: 0.6385 MB / 0.5519 GB, free: 89.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009444/1.133, allocations: 3.353 MB / 0.5552 GB, free: 88.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/1.133, allocations: 113.6 kB / 0.5553 GB, free: 88.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/1.134, allocations: 204.4 kB / 0.5555 GB, free: 88.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007115/1.141, allocations: 3.206 MB / 0.5586 GB, free: 88.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007599/1.149, allocations: 3.829 MB / 0.5624 GB, free: 88.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.623e-05/1.149, allocations: 2.625 kB / 0.5624 GB, free: 88.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002816/1.149, allocations: 3.844 kB / 0.5624 GB, free: 88.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001428/1.15, allocations: 169.8 kB / 0.5625 GB, free: 88.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02396/1.174, allocations: 13.92 MB / 0.5761 GB, free: 84.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00405/1.178, allocations: 5.329 MB / 0.5813 GB, free: 79.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001855/1.18, allocations: 1.219 MB / 0.5825 GB, free: 78.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00674/1.186, allocations: 3.836 MB / 0.5863 GB, free: 76.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/1.186, allocations: 47.69 kB / 0.5863 GB, free: 76.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 4.378e-06/1.186, allocations: 3.938 kB / 0.5863 GB, free: 76.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.007592/1.194, allocations: 4.32 MB / 0.5905 GB, free: 74.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/1.194, allocations: 67.34 kB / 0.5906 GB, free: 74.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002813/1.197, allocations: 1.55 MB / 0.5921 GB, free: 73.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001529/1.197, allocations: 27.2 kB / 0.5921 GB, free: 73.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009557/1.198, allocations: 1.652 MB / 0.5938 GB, free: 72.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003539/1.198, allocations: 464.6 kB / 0.5942 GB, free: 72.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.801e-05/1.198, allocations: 0 / 0.5942 GB, free: 72.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/1.199, allocations: 376.3 kB / 0.5946 GB, free: 71.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009283/1.2, allocations: 0.6688 MB / 0.5952 GB, free: 71.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/1.201, allocations: 1.278 MB / 0.5965 GB, free: 70.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/1.202, allocations: 0.9925 MB / 0.5974 GB, free: 70.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/1.202, allocations: 6.969 kB / 0.5974 GB, free: 70.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.003629/1.206, allocations: 2.362 MB / 0.5997 GB, free: 69.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/1.206, allocations: 17.28 kB / 0.5998 GB, free: 69.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/1.206, allocations: 21.66 kB / 0.5998 GB, free: 69.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003412/1.206, allocations: 144.4 kB / 0.5999 GB, free: 69.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/1.208, allocations: 467.9 kB / 0.6004 GB, free: 69.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/1.21, allocations: 2.955 MB / 0.6032 GB, free: 66.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002012/1.212, allocations: 79.41 kB / 0.6033 GB, free: 66.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/1.212, allocations: 85.77 kB / 0.6034 GB, free: 66.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 (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.0003244/1.212, allocations: 162.5 kB / 0.6036 GB, free: 66.27 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00309/1.215, allocations: 1.986 MB / 0.6055 GB, free: 65.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000335/1.216, allocations: 200.9 kB / 0.6057 GB, free: 65.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/1.219, allocations: 2.144 MB / 0.6078 GB, free: 64.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/1.219, allocations: 13.16 kB / 0.6078 GB, free: 64.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.219, allocations: 3.594 kB / 0.6078 GB, free: 64.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/1.219, allocations: 6.562 kB / 0.6078 GB, free: 64.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008034/1.227, allocations: 4.761 MB / 0.6125 GB, free: 62.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/1.227, allocations: 3.969 kB / 0.6125 GB, free: 62.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/1.228, allocations: 244.4 kB / 0.6127 GB, free: 62.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006553/1.229, allocations: 272.3 kB / 0.6129 GB, free: 61.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.735e-05/1.229, allocations: 15.75 kB / 0.613 GB, free: 61.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0047/1.234, allocations: 6.813 MB / 0.6196 GB, free: 55.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.234, allocations: 11.78 kB / 0.6196 GB, free: 55.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004373/1.238, allocations: 3.335 MB / 0.6229 GB, free: 51.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/1.24, allocations: 447.2 kB / 0.6233 GB, free: 51.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003805/1.24, allocations: 8 kB / 0.6233 GB, free: 51.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/1.241, allocations: 66.02 kB / 0.6234 GB, free: 51.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/1.241, allocations: 99.14 kB / 0.6235 GB, free: 51.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.173e-05/1.241, allocations: 39.89 kB / 0.6235 GB, free: 51.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001895/1.243, allocations: 1.152 MB / 0.6246 GB, free: 50.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.243, allocations: 0 / 0.6246 GB, free: 50.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002741/1.246, allocations: 0.5273 MB / 0.6252 GB, free: 49.77 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 (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.004817/1.251, allocations: 4.8 MB / 0.6298 GB, free: 45.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002646/1.254, allocations: 1.981 MB / 0.6318 GB, free: 43.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/1.254, allocations: 0 / 0.6318 GB, free: 43.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0016/1.255, allocations: 1.331 MB / 0.6331 GB, free: 42.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/1.258, allocations: 425.4 kB / 0.6335 GB, free: 41.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/1.27, allocations: 5.598 MB / 0.639 GB, free: 36.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001977/1.272, allocations: 2.476 MB / 0.6414 GB, free: 34.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001885/1.274, allocations: 0.501 MB / 0.6419 GB, free: 34.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/1.276, allocations: 1.3 MB / 0.6431 GB, free: 33.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/1.276, allocations: 0 / 0.6431 GB, free: 33.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08776/1.363, allocations: 46.79 MB / 0.6888 GB, free: 5.891 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/1.364, allocations: 172.3 kB / 0.689 GB, free: 5.695 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.298/4.662, allocations: 3.938 kB / 0.689 GB, free: 5.691 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat