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_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.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_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.002298/0.002303, allocations: 177.8 kB / 8.36 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.222/2.222, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001135/0.001135, allocations: 88.33 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.52e-05/2.528e-05, allocations: 4 kB / 314.9 MB, free: 9.035 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3347, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1889/0.5237, allocations: 116.5 MB / 478.9 MB, free: 1.648 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/0.524, allocations: 83.95 kB / 479 MB, free: 1.566 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8564/1.38, allocations: 167.2 MB / 0.631 GB, free: 9.504 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.635e-06/1.381, allocations: 0 / 0.631 GB, free: 9.504 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0006695/1.381, allocations: 171.8 kB / 0.6312 GB, free: 9.336 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02852/1.41, allocations: 6.679 MB / 0.6377 GB, free: 2.574 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/1.41, allocations: 8.031 kB / 0.6377 GB, free: 2.566 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01327/1.423, allocations: 1.603 MB / 0.6393 GB, free: 0.9531 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02421/1.447, allocations: 5.945 MB / 0.6451 GB, free: 10.93 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006178/1.448, allocations: 243.9 kB / 0.6453 GB, free: 10.7 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00321/1.451, allocations: 431.8 kB / 0.6457 GB, free: 10.27 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02671/1.478, allocations: 7.117 MB / 0.6527 GB, free: 3.152 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3415/1.82, allocations: 8.309 MB / 0.6608 GB, free: 38.56 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003957/1.82, allocations: 13.41 kB / 0.6608 GB, free: 38.56 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00229/1.822, allocations: 9.125 kB / 0.6608 GB, free: 38.56 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004389/1.823, allocations: 342 kB / 0.6611 GB, free: 38.55 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07521/1.898, allocations: 29.23 MB / 0.6897 GB, free: 33.06 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02325/1.921, allocations: 15.86 MB / 0.7052 GB, free: 21.2 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007303/1.929, allocations: 2.921 MB / 0.708 GB, free: 21.14 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02629/1.955, allocations: 7.945 MB / 0.7158 GB, free: 20.09 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.323e-05/1.955, allocations: 63.97 kB / 0.7158 GB, free: 20.04 MB / 411.1 MB Notification: Performance of pre-optimization done (n=286): time 6.673e-06/1.955, allocations: 0 / 0.7158 GB, free: 20.04 MB / 411.1 MB Notification: Performance of matching and sorting (n=294): time 0.02834/1.984, allocations: 8.816 MB / 0.7245 GB, free: 18.3 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/1.984, allocations: 84.91 kB / 0.7245 GB, free: 18.24 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006556/1.99, allocations: 2.529 MB / 0.727 GB, free: 17.48 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006597/1.991, allocations: 25.7 kB / 0.727 GB, free: 17.45 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002415/1.993, allocations: 3.036 MB / 0.73 GB, free: 15.09 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001403/1.995, allocations: 0.9708 MB / 0.7309 GB, free: 14.32 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003373/1.995, allocations: 0 / 0.7309 GB, free: 14.32 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002636/1.995, allocations: 463.3 kB / 0.7314 GB, free: 13.95 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003396/1.999, allocations: 1.336 MB / 0.7327 GB, free: 13.38 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004358/2.003, allocations: 2.433 MB / 0.7351 GB, free: 11.43 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006395/2.01, allocations: 2.128 MB / 0.7371 GB, free: 10.63 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.055e-05/2.01, allocations: 13.91 kB / 0.7372 GB, free: 10.63 MB / 411.1 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01404/2.024, allocations: 4.559 MB / 0.7416 GB, free: 8.984 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.269e-05/2.024, allocations: 19.25 kB / 0.7416 GB, free: 8.984 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-05/2.024, allocations: 41.88 kB / 0.7417 GB, free: 8.984 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/2.026, allocations: 387 kB / 0.742 GB, free: 8.848 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006636/2.032, allocations: 0.8773 MB / 0.7429 GB, free: 8.82 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007687/2.04, allocations: 7.037 MB / 0.7498 GB, free: 2.836 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/2.045, allocations: 113.3 kB / 0.7499 GB, free: 2.828 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009152/2.046, allocations: 163.8 kB / 0.75 GB, free: 2.797 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (454): * Single equations (assignments): 448 * 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,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008761/2.047, allocations: 214.3 kB / 0.7502 GB, free: 2.66 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01219/2.059, allocations: 4.055 MB / 0.7542 GB, free: 16.93 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001552/2.061, allocations: 359.8 kB / 0.7545 GB, free: 16.75 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01581/2.077, allocations: 4.379 MB / 0.7588 GB, free: 14.91 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.734e-05/2.077, allocations: 29.94 kB / 0.7588 GB, free: 14.91 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.869e-05/2.077, allocations: 13.19 kB / 0.7589 GB, free: 14.91 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.67e-05/2.077, allocations: 13.36 kB / 0.7589 GB, free: 14.91 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02974/2.107, allocations: 9.52 MB / 0.7682 GB, free: 10.75 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-05/2.107, allocations: 6.062 kB / 0.7682 GB, free: 10.75 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004803/2.112, allocations: 453.5 kB / 0.7686 GB, free: 10.74 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003988/2.116, allocations: 0.86 MB / 0.7694 GB, free: 10.45 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008368/2.116, allocations: 36.03 kB / 0.7695 GB, free: 10.43 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02632/2.143, allocations: 15.68 MB / 0.7848 GB, free: 14.12 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/2.143, allocations: 5.281 kB / 0.7848 GB, free: 14.12 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01951/2.162, allocations: 6.746 MB / 0.7914 GB, free: 10.57 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0033/2.166, allocations: 0.7695 MB / 0.7921 GB, free: 10.06 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001472/2.167, allocations: 18.69 kB / 0.7922 GB, free: 10.05 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004349/2.172, allocations: 113.1 kB / 0.7923 GB, free: 10.05 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001035/2.173, allocations: 219.2 kB / 0.7925 GB, free: 10.01 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003256/2.173, allocations: 88.02 kB / 0.7926 GB, free: 9.992 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.005256/2.178, allocations: 1.859 MB / 0.7944 GB, free: 9.215 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.132e-06/2.178, allocations: 0 / 0.7944 GB, free: 9.215 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.008063/2.187, allocations: 1.119 MB / 0.7955 GB, free: 8.41 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 216 * 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%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02912/2.216, allocations: 8.726 MB / 0.804 GB, free: 236 kB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.02234/2.238, allocations: 4.282 MB / 0.8082 GB, free: 13.24 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/2.238, allocations: 0 / 0.8082 GB, free: 13.24 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0106/2.249, allocations: 2.8 MB / 0.8109 GB, free: 10.59 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009517/2.258, allocations: 0.7534 MB / 0.8116 GB, free: 10 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3812/2.64, allocations: 11.73 MB / 0.8231 GB, free: 83.41 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009301/2.649, allocations: 4.361 MB / 0.8273 GB, free: 82.61 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006878/2.656, allocations: 2.694 MB / 0.83 GB, free: 82.61 MB / 459.1 MB Notification: Performance of SimCode: time 1.523e-06/2.656, allocations: 0 / 0.83 GB, free: 82.61 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.833/8.489, allocations: 332.1 MB / 1.154 GB, free: 87.58 MB / 491.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.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_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat