Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.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.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003491/0.00349, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009056/0.0009056, allocations: 95.5 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.414e-05/3.419e-05, allocations: 4 kB / 350.7 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1017, allocations: 51.49 MB / 402.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4056/0.5074, allocations: 116.8 MB / 0.5068 GB, free: 5.277 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.5077, allocations: 97.25 kB / 0.5068 GB, free: 5.227 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6353/1.143, allocations: 165.5 MB / 0.6685 GB, free: 61.84 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.474e-06/1.143, allocations: 3.594 kB / 0.6685 GB, free: 61.84 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006928/1.144, allocations: 169.7 kB / 0.6686 GB, free: 61.81 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02259/1.166, allocations: 6.495 MB / 0.675 GB, free: 57.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.044e-05/1.166, allocations: 11.12 kB / 0.675 GB, free: 57.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004698/1.171, allocations: 0.9569 MB / 0.6759 GB, free: 57.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00994/1.181, allocations: 1.528 MB / 0.6774 GB, free: 56.31 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01624/1.197, allocations: 5.785 MB / 0.6831 GB, free: 52.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006389/1.198, allocations: 0.5201 MB / 0.6836 GB, free: 52.22 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003019/1.201, allocations: 0.6846 MB / 0.6842 GB, free: 51.99 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02702/1.228, allocations: 9.032 MB / 0.6931 GB, free: 45.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004348/1.229, allocations: 7.906 kB / 0.6931 GB, free: 45.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002584/1.231, allocations: 291 kB / 0.6933 GB, free: 45.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003771/1.232, allocations: 326.2 kB / 0.6937 GB, free: 45.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01953/1.251, allocations: 7.327 MB / 0.7008 GB, free: 37.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05783/1.309, allocations: 29 MB / 0.7291 GB, free: 8.438 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3479/1.657, allocations: 17.59 MB / 0.7463 GB, free: 43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008183/1.665, allocations: 4.032 MB / 0.7502 GB, free: 42.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/1.68, allocations: 9.017 MB / 0.759 GB, free: 41.51 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/1.68, allocations: 61.95 kB / 0.7591 GB, free: 41.46 MB / 442.7 MB Notification: Performance of pre-optimization done (n=256): time 4.799e-06/1.68, allocations: 0 / 0.7591 GB, free: 41.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=262): time 0.01419/1.695, allocations: 8.229 MB / 0.7671 GB, free: 40.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/1.695, allocations: 80.19 kB / 0.7672 GB, free: 39.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004864/1.7, allocations: 2.938 MB / 0.7701 GB, free: 39.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003801/1.7, allocations: 69.7 kB / 0.7702 GB, free: 39.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001736/1.702, allocations: 3.053 MB / 0.7731 GB, free: 38.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007527/1.702, allocations: 0.9007 MB / 0.774 GB, free: 37.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/1.703, allocations: 69.53 kB / 0.7741 GB, free: 37.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/1.703, allocations: 443.8 kB / 0.7745 GB, free: 37.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001985/1.705, allocations: 1.358 MB / 0.7758 GB, free: 37.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002518/1.707, allocations: 2.373 MB / 0.7781 GB, free: 36.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002655/1.71, allocations: 1.815 MB / 0.7799 GB, free: 36.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.182e-05/1.71, allocations: 9.156 kB / 0.7799 GB, free: 36.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.007733/1.718, allocations: 4.805 MB / 0.7846 GB, free: 35.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/1.718, allocations: 20.12 kB / 0.7846 GB, free: 35.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.078e-05/1.718, allocations: 37.45 kB / 0.7847 GB, free: 35.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/1.719, allocations: 0.5504 MB / 0.7852 GB, free: 35.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002796/1.722, allocations: 0.7809 MB / 0.786 GB, free: 35.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007758/1.73, allocations: 8.651 MB / 0.7944 GB, free: 30.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/1.733, allocations: 164.9 kB / 0.7946 GB, free: 30.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003902/1.734, allocations: 148.2 kB / 0.7947 GB, free: 30.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 395 * 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%) 8,(1,100.0%) 1,(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007394/1.734, allocations: 318.4 kB / 0.795 GB, free: 30.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007112/1.735, allocations: 368.7 kB / 0.7954 GB, free: 30.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008691/1.744, allocations: 4.388 MB / 0.7997 GB, free: 29.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.2e-05/1.744, allocations: 28.94 kB / 0.7997 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.193e-05/1.744, allocations: 15.19 kB / 0.7997 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-05/1.744, allocations: 14.75 kB / 0.7997 GB, free: 29.65 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02002/1.764, allocations: 10.15 MB / 0.8096 GB, free: 25.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.776e-05/1.764, allocations: 3.938 kB / 0.8096 GB, free: 25.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001979/1.766, allocations: 404.4 kB / 0.81 GB, free: 25.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002665/1.769, allocations: 1.028 MB / 0.811 GB, free: 25.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004646/1.769, allocations: 77.05 kB / 0.8111 GB, free: 25.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0153/1.785, allocations: 17.27 MB / 0.828 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/1.785, allocations: 5.938 kB / 0.828 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/1.795, allocations: 6.475 MB / 0.8343 GB, free: 8.789 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00222/1.797, allocations: 0.7534 MB / 0.835 GB, free: 8.289 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007835/1.798, allocations: 56.62 kB / 0.8351 GB, free: 8.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002025/1.8, allocations: 154.3 kB / 0.8352 GB, free: 8.207 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000522/1.8, allocations: 195.1 kB / 0.8354 GB, free: 8.172 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/1.8, allocations: 77.5 kB / 0.8355 GB, free: 8.156 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003599/1.804, allocations: 2.222 MB / 0.8377 GB, free: 7.281 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.804, allocations: 4 kB / 0.8377 GB, free: 7.277 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005631/1.81, allocations: 1.219 MB / 0.8389 GB, free: 7.156 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (191): * Single equations (assignments): 184 * 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%) 8,(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.00928/1.819, allocations: 8.273 MB / 0.8469 GB, free: 2.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005987/1.825, allocations: 4.105 MB / 0.8509 GB, free: 0.5391 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.825, allocations: 3.938 kB / 0.851 GB, free: 0.5391 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004223/1.829, allocations: 2.851 MB / 0.8537 GB, free: 14.87 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004773/1.834, allocations: 0.9481 MB / 0.8547 GB, free: 14.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02519/1.859, allocations: 11.74 MB / 0.8661 GB, free: 9.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004692/1.864, allocations: 4.355 MB / 0.8704 GB, free: 6.242 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003467/1.868, allocations: 0.8301 MB / 0.8712 GB, free: 5.668 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004005/1.872, allocations: 2.539 MB / 0.8737 GB, free: 3.309 MB / 458.7 MB Notification: Performance of SimCode: time 2.245e-06/1.872, allocations: 0 / 0.8737 GB, free: 3.309 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4599/2.332, allocations: 102.5 MB / 0.9737 GB, free: 97.54 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/2.332, allocations: 254.5 kB / 0.974 GB, free: 97.21 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.06/7.392, allocations: 0 / 0.974 GB, free: 97.21 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat