Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.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.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",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.00124/0.00124, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008196/0.0008196, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.564e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08217/0.08221, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3232/0.4055, allocations: 113.3 MB / 483.4 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000185/0.4057, allocations: 83.39 kB / 483.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5035/0.9092, allocations: 159.4 MB / 0.6278 GB, free: 55.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.9092, allocations: 0 / 0.6278 GB, free: 55.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003695/0.9096, allocations: 163.8 kB / 0.628 GB, free: 54.97 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.01559/0.9252, allocations: 6.435 MB / 0.6342 GB, free: 48.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.9252, allocations: 8.031 kB / 0.6343 GB, free: 48.44 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001778/0.927, allocations: 0.9587 MB / 0.6352 GB, free: 47.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007163/0.9342, allocations: 1.525 MB / 0.6367 GB, free: 45.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.9467, allocations: 5.731 MB / 0.6423 GB, free: 40.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000311/0.947, allocations: 0.5138 MB / 0.6428 GB, free: 39.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001708/0.9487, allocations: 0.6834 MB / 0.6434 GB, free: 38.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01716/0.9659, allocations: 9.054 MB / 0.6523 GB, free: 29.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003056/0.9663, allocations: 7.906 kB / 0.6523 GB, free: 29.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001891/0.9682, allocations: 292 kB / 0.6526 GB, free: 29.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002951/0.9685, allocations: 326.1 kB / 0.6529 GB, free: 29.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.9815, allocations: 7.327 MB / 0.66 GB, free: 21.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03807/1.02, allocations: 28.85 MB / 0.6882 GB, free: 8.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4068/1.426, allocations: 16.43 MB / 0.7043 GB, free: 55.79 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005658/1.432, allocations: 2.864 MB / 0.7071 GB, free: 55.74 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01393/1.446, allocations: 7.725 MB / 0.7146 GB, free: 54.84 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/1.446, allocations: 64.33 kB / 0.7147 GB, free: 54.79 MB / 426.8 MB Notification: Performance of pre-optimization done (n=254): time 4.588e-06/1.446, allocations: 0 / 0.7147 GB, free: 54.79 MB / 426.8 MB Notification: Performance of matching and sorting (n=260): time 0.01235/1.459, allocations: 7.753 MB / 0.7222 GB, free: 53.41 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/1.459, allocations: 78.58 kB / 0.7223 GB, free: 53.34 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004652/1.463, allocations: 2.919 MB / 0.7252 GB, free: 53.09 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002811/1.464, allocations: 71.55 kB / 0.7252 GB, free: 53.06 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/1.465, allocations: 3.042 MB / 0.7282 GB, free: 51.74 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006482/1.466, allocations: 0.8953 MB / 0.7291 GB, free: 51.17 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/1.466, allocations: 70.25 kB / 0.7291 GB, free: 51.17 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0001423/1.466, allocations: 443.5 kB / 0.7296 GB, free: 50.86 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/1.468, allocations: 1.295 MB / 0.7308 GB, free: 50.86 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/1.47, allocations: 2.315 MB / 0.7331 GB, free: 49.66 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002033/1.472, allocations: 1.754 MB / 0.7348 GB, free: 49.61 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/1.472, allocations: 11.69 kB / 0.7348 GB, free: 49.61 MB / 426.8 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.005884/1.478, allocations: 4.494 MB / 0.7392 GB, free: 49.14 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/1.478, allocations: 25.19 kB / 0.7392 GB, free: 49.14 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.195e-05/1.478, allocations: 33.62 kB / 0.7393 GB, free: 49.14 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008127/1.479, allocations: 397.4 kB / 0.7396 GB, free: 49.09 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002581/1.481, allocations: 0.7915 MB / 0.7404 GB, free: 49.09 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004657/1.486, allocations: 7.328 MB / 0.7476 GB, free: 43.91 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002785/1.489, allocations: 167.4 kB / 0.7477 GB, free: 43.9 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000224/1.489, allocations: 143.9 kB / 0.7479 GB, free: 43.9 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (406): * Single equations (assignments): 400 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004601/1.489, allocations: 315.2 kB / 0.7482 GB, free: 43.77 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004479/1.49, allocations: 368.8 kB / 0.7485 GB, free: 43.59 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006074/1.496, allocations: 4.04 MB / 0.7525 GB, free: 43.11 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/1.496, allocations: 24.97 kB / 0.7525 GB, free: 43.11 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/1.496, allocations: 10.34 kB / 0.7525 GB, free: 43.11 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-05/1.496, allocations: 13.97 kB / 0.7525 GB, free: 43.11 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01261/1.509, allocations: 9.669 MB / 0.7619 GB, free: 39.84 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/1.509, allocations: 3.438 kB / 0.7619 GB, free: 39.84 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/1.51, allocations: 410.9 kB / 0.7623 GB, free: 39.83 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001765/1.512, allocations: 0.8385 MB / 0.7632 GB, free: 39.57 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/1.512, allocations: 73.94 kB / 0.7632 GB, free: 39.53 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01183/1.524, allocations: 15.99 MB / 0.7788 GB, free: 26.82 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.524, allocations: 7.469 kB / 0.7788 GB, free: 26.82 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007177/1.531, allocations: 6.1 MB / 0.7848 GB, free: 23.64 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001434/1.533, allocations: 0.7424 MB / 0.7855 GB, free: 23.14 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004334/1.533, allocations: 59.12 kB / 0.7856 GB, free: 23.11 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/1.535, allocations: 152.5 kB / 0.7857 GB, free: 23.07 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000369/1.535, allocations: 203.6 kB / 0.7859 GB, free: 23.04 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/1.535, allocations: 72.98 kB / 0.786 GB, free: 23.02 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002821/1.538, allocations: 2.209 MB / 0.7882 GB, free: 22.15 MB / 426.8 MB Notification: Performance of sort global known variables: time 6.11e-07/1.538, allocations: 0 / 0.7882 GB, free: 22.15 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.003825/1.542, allocations: 1.196 MB / 0.7893 GB, free: 22.03 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (194): * Single equations (assignments): 187 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007677/1.55, allocations: 7.974 MB / 0.7971 GB, free: 17.42 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.004552/1.554, allocations: 3.914 MB / 0.8009 GB, free: 15.58 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.554, allocations: 4.344 kB / 0.8009 GB, free: 15.58 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003177/1.558, allocations: 2.759 MB / 0.8036 GB, free: 13.98 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/1.561, allocations: 0.9151 MB / 0.8045 GB, free: 13.73 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01691/1.578, allocations: 11.7 MB / 0.816 GB, free: 4.098 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00308/1.581, allocations: 4.344 MB / 0.8202 GB, free: 0.8477 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002683/1.584, allocations: 0.8282 MB / 0.821 GB, free: 280 kB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01033/1.594, allocations: 3.097 MB / 0.824 GB, free: 15.99 MB / 442.8 MB Notification: Performance of SimCode: time 1.172e-06/1.594, allocations: 0 / 0.824 GB, free: 15.99 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3398/1.934, allocations: 100.2 MB / 0.9218 GB, free: 91.42 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/1.934, allocations: 218.9 kB / 0.922 GB, free: 91.18 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.597/6.531, allocations: 3.953 kB / 0.922 GB, free: 91.18 MB / 458.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat