Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_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.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_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.001169/0.001169, allocations: 171.6 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.369/1.369, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0009237/0.0009241, allocations: 86.69 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.578e-05/2.58e-05, allocations: 0 / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07807/0.07811, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3388/0.4169, allocations: 122.3 MB / 492.5 MB, free: 3.703 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.4173, allocations: 87.75 kB / 492.6 MB, free: 3.656 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6462/1.063, allocations: 193.1 MB / 0.6696 GB, free: 11.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/1.063, allocations: 0 / 0.6696 GB, free: 11.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006011/1.064, allocations: 207.8 kB / 0.6698 GB, free: 11.59 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02283/1.087, allocations: 7.913 MB / 0.6775 GB, free: 3.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/1.087, allocations: 8.031 kB / 0.6776 GB, free: 3.582 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003093/1.09, allocations: 1.177 MB / 0.6787 GB, free: 2.395 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/1.101, allocations: 1.897 MB / 0.6806 GB, free: 496 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01816/1.12, allocations: 7.053 MB / 0.6874 GB, free: 9.359 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005493/1.12, allocations: 0.6343 MB / 0.6881 GB, free: 8.723 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002599/1.123, allocations: 0.8513 MB / 0.6889 GB, free: 7.871 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.288/1.411, allocations: 10.93 MB / 0.6996 GB, free: 36.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004708/1.411, allocations: 6.219 kB / 0.6996 GB, free: 36.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00283/1.414, allocations: 371 kB / 0.6999 GB, free: 36.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005504/1.415, allocations: 368.6 kB / 0.7003 GB, free: 35.99 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02283/1.438, allocations: 8.738 MB / 0.7088 GB, free: 35.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06409/1.502, allocations: 36.08 MB / 0.744 GB, free: 29.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/1.514, allocations: 16.79 MB / 0.7604 GB, free: 16.88 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005333/1.52, allocations: 3.375 MB / 0.7637 GB, free: 16.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01626/1.536, allocations: 9.527 MB / 0.773 GB, free: 12.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/1.536, allocations: 66.44 kB / 0.7731 GB, free: 12.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=296): time 4.668e-06/1.536, allocations: 2.75 kB / 0.7731 GB, free: 12.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=348): time 0.01943/1.556, allocations: 11.57 MB / 0.7844 GB, free: 7.312 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/1.556, allocations: 93.72 kB / 0.7845 GB, free: 7.246 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006576/1.562, allocations: 3.832 MB / 0.7882 GB, free: 5.781 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008248/1.563, allocations: 89.8 kB / 0.7883 GB, free: 5.703 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002483/1.566, allocations: 3.891 MB / 0.7921 GB, free: 2.762 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001238/1.567, allocations: 1.185 MB / 0.7933 GB, free: 1.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/1.567, allocations: 86.97 kB / 0.7934 GB, free: 1.773 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001967/1.567, allocations: 491.6 kB / 0.7938 GB, free: 1.387 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002413/1.57, allocations: 1.716 MB / 0.7955 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00341/1.573, allocations: 3.168 MB / 0.7986 GB, free: 14.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003144/1.576, allocations: 2.313 MB / 0.8009 GB, free: 13.28 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.21e-05/1.576, allocations: 12 kB / 0.8009 GB, free: 13.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.009713/1.586, allocations: 6.144 MB / 0.8069 GB, free: 10.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.288e-05/1.586, allocations: 25.53 kB / 0.8069 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-05/1.586, allocations: 46.56 kB / 0.8069 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001883/1.588, allocations: 0.7335 MB / 0.8077 GB, free: 10.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003841/1.592, allocations: 1.054 MB / 0.8087 GB, free: 10.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/1.603, allocations: 10.06 MB / 0.8185 GB, free: 2.844 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004784/1.608, allocations: 263 kB / 0.8188 GB, free: 2.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007092/1.608, allocations: 203.6 kB / 0.8189 GB, free: 2.715 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 513 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007631/1.609, allocations: 378.9 kB / 0.8193 GB, free: 2.457 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009026/1.61, allocations: 482.7 kB / 0.8198 GB, free: 2.211 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00902/1.619, allocations: 5.101 MB / 0.8247 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.367e-05/1.619, allocations: 34.94 kB / 0.8248 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/1.619, allocations: 9.969 kB / 0.8248 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.591e-05/1.619, allocations: 18.23 kB / 0.8248 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02035/1.639, allocations: 12.46 MB / 0.837 GB, free: 10.51 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.052e-05/1.639, allocations: 3.844 kB / 0.837 GB, free: 10.51 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002511/1.642, allocations: 0.5978 MB / 0.8376 GB, free: 10.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002207/1.644, allocations: 0.9011 MB / 0.8384 GB, free: 10.19 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002258/1.644, allocations: 82.19 kB / 0.8385 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/1.66, allocations: 14.01 MB / 0.8522 GB, free: 12.69 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/1.66, allocations: 7.953 kB / 0.8522 GB, free: 12.68 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01245/1.673, allocations: 8.109 MB / 0.8601 GB, free: 4.945 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002627/1.676, allocations: 0.9512 MB / 0.8611 GB, free: 4.07 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005859/1.676, allocations: 68 kB / 0.8611 GB, free: 4.004 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002315/1.679, allocations: 216.5 kB / 0.8613 GB, free: 3.836 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005284/1.679, allocations: 266.6 kB / 0.8616 GB, free: 3.676 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003504/1.679, allocations: 105.4 kB / 0.8617 GB, free: 3.582 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004468/1.684, allocations: 2.892 MB / 0.8645 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.684, allocations: 2.344 kB / 0.8645 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008214/1.692, allocations: 1.802 MB / 0.8663 GB, free: 0 / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2736/1.966, allocations: 10.21 MB / 0.8763 GB, free: 77.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0084/1.974, allocations: 5.271 MB / 0.8814 GB, free: 76.65 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.949e-05/1.974, allocations: 1.5 kB / 0.8814 GB, free: 76.65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005075/1.979, allocations: 3.276 MB / 0.8846 GB, free: 75.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005279/1.985, allocations: 1.067 MB / 0.8856 GB, free: 75.94 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02905/2.014, allocations: 14.17 MB / 0.8995 GB, free: 73.15 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005445/2.019, allocations: 5.214 MB / 0.9046 GB, free: 72.21 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004611/2.024, allocations: 1.051 MB / 0.9056 GB, free: 72.08 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00472/2.029, allocations: 3.284 MB / 0.9088 GB, free: 72.08 MB / 474.7 MB Notification: Performance of SimCode: time 8.11e-07/2.029, allocations: 0 / 0.9088 GB, free: 72.08 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1595/2.188, allocations: 125.2 MB / 1.031 GB, free: 4.23 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/2.188, allocations: 209.5 kB / 1.031 GB, free: 4.004 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.315/7.503, allocations: 7.344 kB / 1.031 GB, free: 4 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat