Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 199.3 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009715/0.0009716, allocations: 94.31 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.884e-05/2.89e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 51.48 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4152/0.5273, allocations: 126.5 MB / 0.5096 GB, free: 15.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003007/0.5277, allocations: 93.5 kB / 0.5097 GB, free: 15.05 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5584/1.086, allocations: 117.9 MB / 0.6248 GB, free: 73.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.148e-06/1.086, allocations: 0 / 0.6248 GB, free: 73.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006731/1.087, allocations: 138.2 kB / 0.6249 GB, free: 73.85 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02095/1.108, allocations: 4.931 MB / 0.6297 GB, free: 71.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/1.108, allocations: 9.656 kB / 0.6298 GB, free: 71.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007001/1.115, allocations: 0.9522 MB / 0.6307 GB, free: 71.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01346/1.128, allocations: 4.43 MB / 0.635 GB, free: 70.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003577/1.129, allocations: 172.6 kB / 0.6352 GB, free: 70.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002104/1.131, allocations: 308.9 kB / 0.6355 GB, free: 70.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01302/1.144, allocations: 4.92 MB / 0.6403 GB, free: 69.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02285/1.167, allocations: 5.813 MB / 0.646 GB, free: 67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004116/1.167, allocations: 11.34 kB / 0.646 GB, free: 66.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002343/1.17, allocations: 7.656 kB / 0.646 GB, free: 66.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002621/1.17, allocations: 237 kB / 0.6462 GB, free: 66.96 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04478/1.215, allocations: 20.24 MB / 0.666 GB, free: 56.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009184/1.224, allocations: 8.659 MB / 0.6744 GB, free: 48.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003889/1.228, allocations: 1.934 MB / 0.6763 GB, free: 47.83 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/1.242, allocations: 6.134 MB / 0.6823 GB, free: 44.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.577e-05/1.242, allocations: 59.97 kB / 0.6824 GB, free: 44.51 MB / 442.7 MB Notification: Performance of pre-optimization done (n=212): time 6.041e-06/1.242, allocations: 7.938 kB / 0.6824 GB, free: 44.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=236): time 0.02037/1.262, allocations: 8.388 MB / 0.6906 GB, free: 40.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/1.262, allocations: 76.06 kB / 0.6906 GB, free: 40.83 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005813/1.268, allocations: 2.051 MB / 0.6926 GB, free: 40 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005938/1.269, allocations: 25.7 kB / 0.6927 GB, free: 39.96 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001865/1.27, allocations: 2.359 MB / 0.695 GB, free: 38.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/1.272, allocations: 0.7815 MB / 0.6957 GB, free: 37.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004458/1.272, allocations: 0 / 0.6957 GB, free: 37.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000251/1.272, allocations: 426.8 kB / 0.6961 GB, free: 37.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002066/1.274, allocations: 1.194 MB / 0.6973 GB, free: 36.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002671/1.277, allocations: 2.059 MB / 0.6993 GB, free: 35.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003938/1.281, allocations: 1.766 MB / 0.701 GB, free: 33.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.969e-05/1.281, allocations: 8 kB / 0.701 GB, free: 33.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.009592/1.291, allocations: 4.335 MB / 0.7053 GB, free: 29.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.327e-05/1.291, allocations: 20.53 kB / 0.7053 GB, free: 29.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.264e-05/1.291, allocations: 32 kB / 0.7053 GB, free: 29.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001776/1.293, allocations: 0.6967 MB / 0.706 GB, free: 29.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002732/1.295, allocations: 0.7017 MB / 0.7067 GB, free: 28.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007978/1.303, allocations: 8.999 MB / 0.7155 GB, free: 19.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003474/1.307, allocations: 126 kB / 0.7156 GB, free: 19.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007035/1.308, allocations: 135.6 kB / 0.7157 GB, free: 19.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (347): * Single equations (assignments): 341 * 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: 4 * 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: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001141/1.309, allocations: 187.6 kB / 0.7159 GB, free: 19.3 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007892/1.317, allocations: 3.72 MB / 0.7195 GB, free: 16.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001077/1.318, allocations: 300.4 kB / 0.7198 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007425/1.325, allocations: 3.986 MB / 0.7237 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/1.325, allocations: 20 kB / 0.7237 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.573e-05/1.325, allocations: 12 kB / 0.7237 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.417e-05/1.325, allocations: 11.39 kB / 0.7238 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/1.34, allocations: 8.002 MB / 0.7316 GB, free: 4.852 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/1.34, allocations: 4.031 kB / 0.7316 GB, free: 4.848 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/1.341, allocations: 391.4 kB / 0.732 GB, free: 4.465 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/1.344, allocations: 0.9216 MB / 0.7329 GB, free: 3.523 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001862/1.344, allocations: 35.92 kB / 0.7329 GB, free: 3.488 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3132/1.657, allocations: 14.88 MB / 0.7474 GB, free: 61.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/1.657, allocations: 6.469 kB / 0.7474 GB, free: 61.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008824/1.666, allocations: 5.908 MB / 0.7532 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/1.668, allocations: 0.6332 MB / 0.7538 GB, free: 60.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004705/1.668, allocations: 15.39 kB / 0.7538 GB, free: 60.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/1.67, allocations: 122.4 kB / 0.7539 GB, free: 60.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004443/1.67, allocations: 180 kB / 0.7541 GB, free: 60.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001531/1.671, allocations: 70.53 kB / 0.7542 GB, free: 60.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002484/1.673, allocations: 1.513 MB / 0.7557 GB, free: 60.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.113e-06/1.673, allocations: 3.438 kB / 0.7557 GB, free: 60.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004746/1.678, allocations: 0.9019 MB / 0.7565 GB, free: 60.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 173 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01017/1.688, allocations: 7.534 MB / 0.7639 GB, free: 57.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005533/1.694, allocations: 3.773 MB / 0.7676 GB, free: 57.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.694, allocations: 4.438 kB / 0.7676 GB, free: 57.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003752/1.697, allocations: 2.563 MB / 0.7701 GB, free: 56.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004289/1.702, allocations: 0.5982 MB / 0.7707 GB, free: 56.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0216/1.723, allocations: 8.968 MB / 0.7794 GB, free: 54.42 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003587/1.727, allocations: 3.406 MB / 0.7828 GB, free: 53.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003148/1.73, allocations: 0.7253 MB / 0.7835 GB, free: 53.48 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002358/1.733, allocations: 1.946 MB / 0.7854 GB, free: 52.97 MB / 442.7 MB Notification: Performance of SimCode: time 8.31e-07/1.733, allocations: 1.094 kB / 0.7854 GB, free: 52.97 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1239/1.856, allocations: 73.45 MB / 0.8571 GB, free: 27.58 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/1.857, allocations: 194.5 kB / 0.8573 GB, free: 27.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.4/6.257, allocations: 0 / 0.8573 GB, free: 27.38 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat