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.002438/0.002444, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001115/0.001114, allocations: 74.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.628e-05/3.653e-05, allocations: 4 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 47.57 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4967/0.5969, allocations: 117.1 MB / 486.3 MB, free: 8.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003354/0.5973, allocations: 94.62 kB / 486.4 MB, free: 8.719 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.027/1.625, allocations: 169.4 MB / 0.6404 GB, free: 41.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.625, allocations: 3.938 kB / 0.6404 GB, free: 41.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007409/1.625, allocations: 167.8 kB / 0.6406 GB, free: 41.64 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02929/1.655, allocations: 6.683 MB / 0.6471 GB, free: 34.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/1.655, allocations: 8.031 kB / 0.6471 GB, free: 34.87 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003818/1.659, allocations: 0.9958 MB / 0.6481 GB, free: 33.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01305/1.672, allocations: 1.599 MB / 0.6496 GB, free: 32.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02064/1.692, allocations: 5.96 MB / 0.6554 GB, free: 26.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006882/1.693, allocations: 0.5381 MB / 0.656 GB, free: 25.68 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003059/1.696, allocations: 0.7107 MB / 0.6567 GB, free: 24.97 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03161/1.728, allocations: 9.366 MB / 0.6658 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003129/1.728, allocations: 11.91 kB / 0.6658 GB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001862/1.73, allocations: 308 kB / 0.6661 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003932/1.73, allocations: 334.7 kB / 0.6664 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02403/1.755, allocations: 7.559 MB / 0.6738 GB, free: 7.172 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5327/2.287, allocations: 30.65 MB / 0.7037 GB, free: 49.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02415/2.312, allocations: 16.01 MB / 0.7194 GB, free: 37.69 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008883/2.32, allocations: 3.042 MB / 0.7224 GB, free: 37.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0285/2.349, allocations: 8.196 MB / 0.7304 GB, free: 36.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.558e-05/2.349, allocations: 63.8 kB / 0.7304 GB, free: 36.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 5.841e-06/2.349, allocations: 0 / 0.7304 GB, free: 36.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=292): time 0.02727/2.376, allocations: 8.402 MB / 0.7386 GB, free: 35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/2.377, allocations: 88.16 kB / 0.7387 GB, free: 34.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00966/2.386, allocations: 3.197 MB / 0.7418 GB, free: 34.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006831/2.387, allocations: 75.2 kB / 0.7419 GB, free: 34.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002698/2.39, allocations: 2.976 MB / 0.7448 GB, free: 33.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001499/2.391, allocations: 1.001 MB / 0.7458 GB, free: 32.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004291/2.392, allocations: 80.33 kB / 0.7459 GB, free: 32.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003451/2.392, allocations: 462 kB / 0.7463 GB, free: 32.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004222/2.396, allocations: 1.401 MB / 0.7477 GB, free: 32.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005393/2.402, allocations: 2.527 MB / 0.7501 GB, free: 30.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005505/2.407, allocations: 1.898 MB / 0.752 GB, free: 30.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-05/2.407, allocations: 14.5 kB / 0.752 GB, free: 30.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.01395/2.421, allocations: 4.608 MB / 0.7565 GB, free: 30.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.934e-05/2.421, allocations: 18.62 kB / 0.7565 GB, free: 30.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-05/2.422, allocations: 36.81 kB / 0.7566 GB, free: 30.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/2.423, allocations: 409.5 kB / 0.7569 GB, free: 30.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006857/2.43, allocations: 0.8699 MB / 0.7578 GB, free: 30.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008606/2.439, allocations: 7.326 MB / 0.765 GB, free: 25.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00569/2.444, allocations: 184.2 kB / 0.7651 GB, free: 25.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000981/2.446, allocations: 165.7 kB / 0.7653 GB, free: 25.33 MB / 426.7 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 (452): * Single equations (assignments): 446 * 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,88.9%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0011/2.447, allocations: 332.6 kB / 0.7656 GB, free: 25.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00137/2.448, allocations: 410.5 kB / 0.766 GB, free: 25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01417/2.462, allocations: 4.361 MB / 0.7703 GB, free: 24.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.921e-05/2.462, allocations: 28.78 kB / 0.7703 GB, free: 24.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-05/2.462, allocations: 17.27 kB / 0.7703 GB, free: 24.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.472e-05/2.463, allocations: 16.78 kB / 0.7703 GB, free: 24.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0388/2.501, allocations: 10.41 MB / 0.7805 GB, free: 20.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.555e-05/2.501, allocations: 4.281 kB / 0.7805 GB, free: 20.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004996/2.506, allocations: 453.7 kB / 0.7809 GB, free: 20.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003972/2.51, allocations: 0.8763 MB / 0.7818 GB, free: 20.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006925/2.511, allocations: 79.86 kB / 0.7818 GB, free: 20.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02321/2.534, allocations: 16.25 MB / 0.7977 GB, free: 7.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/2.534, allocations: 6.188 kB / 0.7977 GB, free: 7.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0163/2.551, allocations: 6.74 MB / 0.8043 GB, free: 3.926 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003197/2.554, allocations: 0.8195 MB / 0.8051 GB, free: 3.379 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001445/2.556, allocations: 72.41 kB / 0.8052 GB, free: 3.336 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00447/2.56, allocations: 154.4 kB / 0.8053 GB, free: 3.297 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001013/2.561, allocations: 220.7 kB / 0.8055 GB, free: 3.262 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000344/2.561, allocations: 90.36 kB / 0.8056 GB, free: 3.242 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006465/2.568, allocations: 2.413 MB / 0.808 GB, free: 2.301 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.72e-07/2.568, allocations: 0 / 0.808 GB, free: 2.301 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007479/2.575, allocations: 1.274 MB / 0.8092 GB, free: 2.172 MB / 426.7 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 (222): * Single equations (assignments): 215 * 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.02181/2.597, allocations: 8.997 MB / 0.818 GB, free: 13.21 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01154/2.609, allocations: 4.214 MB / 0.8221 GB, free: 11.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.368e-05/2.609, allocations: 0 / 0.8221 GB, free: 11.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008176/2.617, allocations: 2.928 MB / 0.825 GB, free: 9.602 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008762/2.626, allocations: 1.032 MB / 0.826 GB, free: 8.859 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04423/2.67, allocations: 12.02 MB / 0.8377 GB, free: 14.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/2.68, allocations: 4.367 MB / 0.842 GB, free: 10.97 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007943/2.688, allocations: 2.777 MB / 0.8447 GB, free: 8.395 MB / 458.7 MB Notification: Performance of SimCode: time 2.094e-06/2.688, allocations: 0 / 0.8447 GB, free: 8.395 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.036/8.724, allocations: 338 MB / 1.175 GB, free: 36.82 MB / 490.7 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