Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001521/0.001521, allocations: 178.4 kB / 8.362 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.135/2.135, allocations: 205.3 MB / 214.1 MB, free: 14.09 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.001068/0.001068, allocations: 89.27 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.493e-05/2.487e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3437, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2645/0.6082, allocations: 121.7 MB / 484.1 MB, free: 12.43 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003209/0.6086, allocations: 83.95 kB / 484.2 MB, free: 12.35 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.288/1.897, allocations: 190.7 MB / 0.6591 GB, free: 25.67 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.585e-06/1.897, allocations: 0 / 0.6591 GB, free: 25.67 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.0009217/1.898, allocations: 204.6 kB / 0.6593 GB, free: 25.67 MB / 411.1 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.03562/1.934, allocations: 7.902 MB / 0.667 GB, free: 23.57 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/1.934, allocations: 14.88 kB / 0.667 GB, free: 23.57 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01619/1.95, allocations: 1.903 MB / 0.6689 GB, free: 23.07 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02601/1.976, allocations: 7.039 MB / 0.6758 GB, free: 22.09 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005847/1.977, allocations: 281.5 kB / 0.676 GB, free: 22.09 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003324/1.98, allocations: 0.5111 MB / 0.6765 GB, free: 22.08 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02761/2.008, allocations: 8.217 MB / 0.6846 GB, free: 22.04 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03852/2.046, allocations: 9.665 MB / 0.694 GB, free: 21.2 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006504/2.047, allocations: 15.72 kB / 0.694 GB, free: 21.2 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003143/2.05, allocations: 5.312 kB / 0.694 GB, free: 21.2 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007139/2.051, allocations: 372.7 kB / 0.6944 GB, free: 21.18 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09562/2.146, allocations: 34.41 MB / 0.728 GB, free: 14.25 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02377/2.17, allocations: 16.62 MB / 0.7442 GB, free: 16.88 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008239/2.179, allocations: 3.24 MB / 0.7474 GB, free: 15.68 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02872/2.207, allocations: 9.289 MB / 0.7564 GB, free: 10.54 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.651e-05/2.208, allocations: 71.52 kB / 0.7565 GB, free: 10.47 MB / 427.1 MB Notification: Performance of pre-optimization done (n=298): time 8.646e-06/2.208, allocations: 0 / 0.7565 GB, free: 10.47 MB / 427.1 MB Notification: Performance of matching and sorting (n=350): time 0.04355/2.251, allocations: 12.12 MB / 0.7683 GB, free: 5.113 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.493e-05/2.251, allocations: 90.2 kB / 0.7684 GB, free: 5.047 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009186/2.26, allocations: 3.153 MB / 0.7715 GB, free: 3.785 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007603/2.261, allocations: 28.44 kB / 0.7715 GB, free: 3.754 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00409/2.265, allocations: 3.677 MB / 0.7751 GB, free: 0.8516 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002103/2.267, allocations: 1.152 MB / 0.7763 GB, free: 15.95 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004422/2.268, allocations: 0 / 0.7763 GB, free: 15.95 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0004197/2.268, allocations: 488.5 kB / 0.7767 GB, free: 15.55 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004607/2.273, allocations: 1.636 MB / 0.7783 GB, free: 14.84 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006201/2.279, allocations: 3.053 MB / 0.7813 GB, free: 12.28 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007882/2.287, allocations: 2.539 MB / 0.7838 GB, free: 11.27 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.04e-05/2.287, allocations: 21.09 kB / 0.7838 GB, free: 11.27 MB / 443.1 MB Notification: Performance of matching and sorting (n=576) (initialization): time 0.01778/2.305, allocations: 5.699 MB / 0.7894 GB, free: 9.219 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.755e-05/2.305, allocations: 25.06 kB / 0.7894 GB, free: 9.219 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-05/2.305, allocations: 48.19 kB / 0.7894 GB, free: 9.219 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003123/2.308, allocations: 0.7089 MB / 0.7901 GB, free: 8.977 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007881/2.316, allocations: 1.056 MB / 0.7912 GB, free: 8.75 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01695/2.333, allocations: 9.648 MB / 0.8006 GB, free: 15.32 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006315/2.34, allocations: 168.6 kB / 0.8007 GB, free: 15.19 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001173/2.341, allocations: 203.7 kB / 0.8009 GB, free: 15 MB / 459.1 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 (523): * Single equations (assignments): 515 * 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,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001185/2.342, allocations: 245 kB / 0.8012 GB, free: 14.82 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01687/2.359, allocations: 4.752 MB / 0.8058 GB, free: 10.61 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002113/2.361, allocations: 442.6 kB / 0.8062 GB, free: 10.17 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01818/2.379, allocations: 5.038 MB / 0.8112 GB, free: 5.887 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.352e-05/2.38, allocations: 37.59 kB / 0.8112 GB, free: 5.852 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.361e-05/2.38, allocations: 8 kB / 0.8112 GB, free: 5.844 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.714e-05/2.38, allocations: 20.78 kB / 0.8112 GB, free: 5.84 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3794/2.759, allocations: 11.65 MB / 0.8226 GB, free: 65.75 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.699e-05/2.759, allocations: 11.88 kB / 0.8226 GB, free: 65.75 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005316/2.765, allocations: 0.6097 MB / 0.8232 GB, free: 65.75 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003714/2.768, allocations: 0.8724 MB / 0.8241 GB, free: 65.71 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006646/2.769, allocations: 37.81 kB / 0.8241 GB, free: 65.71 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01996/2.789, allocations: 13.46 MB / 0.8372 GB, free: 59.41 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.189e-05/2.789, allocations: 7.219 kB / 0.8372 GB, free: 59.41 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01982/2.809, allocations: 7.956 MB / 0.845 GB, free: 58 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003621/2.813, allocations: 0.8958 MB / 0.8459 GB, free: 57.9 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001585/2.814, allocations: 16.25 kB / 0.8459 GB, free: 57.9 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005225/2.82, allocations: 166.9 kB / 0.8461 GB, free: 57.9 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001269/2.821, allocations: 270.8 kB / 0.8463 GB, free: 57.89 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004146/2.821, allocations: 99.41 kB / 0.8464 GB, free: 57.89 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.007029/2.828, allocations: 2.322 MB / 0.8487 GB, free: 57.71 MB / 459.1 MB Notification: Performance of sort global known variables: time 8.42e-07/2.828, allocations: 0 / 0.8487 GB, free: 57.71 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.009063/2.837, allocations: 1.329 MB / 0.85 GB, free: 57.71 MB / 459.1 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 (273): * Single equations (assignments): 266 * 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.02143/2.859, allocations: 10.02 MB / 0.8598 GB, free: 54.76 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.01237/2.871, allocations: 5.01 MB / 0.8647 GB, free: 53.99 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/2.871, allocations: 0 / 0.8647 GB, free: 53.99 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007315/2.879, allocations: 3.127 MB / 0.8677 GB, free: 53.35 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006857/2.886, allocations: 0.7675 MB / 0.8685 GB, free: 53.32 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04518/2.931, allocations: 13.71 MB / 0.8818 GB, free: 50.51 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01054/2.941, allocations: 5.094 MB / 0.8868 GB, free: 49.61 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00803/2.95, allocations: 3.317 MB / 0.8901 GB, free: 49.61 MB / 459.1 MB Notification: Performance of SimCode: time 1.633e-06/2.95, allocations: 0 / 0.8901 GB, free: 49.61 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.497/9.447, allocations: 357.3 MB / 1.239 GB, free: 89.37 MB / 491.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat