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.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,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",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.0009633/0.0009633, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.188/1.188, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008149/0.0008146, allocations: 98.86 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002959/0.0002959, allocations: 8 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2168, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3116/0.5284, allocations: 135.8 MB / 0.4997 GB, free: 111.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.5287, allocations: 87.3 kB / 0.4998 GB, free: 111.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2744/0.8031, allocations: 131.1 MB / 0.6278 GB, free: 4.766 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.8031, allocations: 4 kB / 0.6278 GB, free: 4.762 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005159/0.8037, allocations: 143.9 kB / 0.6279 GB, free: 4.621 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01963/0.8233, allocations: 6.051 MB / 0.6338 GB, free: 14.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/0.8234, allocations: 8.031 kB / 0.6339 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003087/0.8265, allocations: 0.7898 MB / 0.6346 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007028/0.8335, allocations: 1.159 MB / 0.6358 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01549/0.849, allocations: 4.926 MB / 0.6406 GB, free: 7.516 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005479/0.8497, allocations: 427.4 kB / 0.641 GB, free: 7.098 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002132/0.8518, allocations: 0.5584 MB / 0.6415 GB, free: 6.539 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2405/1.092, allocations: 7.211 MB / 0.6486 GB, free: 38.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003008/1.093, allocations: 9.531 kB / 0.6486 GB, free: 38.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001934/1.095, allocations: 241.8 kB / 0.6488 GB, free: 38.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002461/1.095, allocations: 256.6 kB / 0.649 GB, free: 38.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01321/1.108, allocations: 5.843 MB / 0.6548 GB, free: 38.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0483/1.156, allocations: 23.86 MB / 0.6781 GB, free: 33.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00843/1.165, allocations: 8.792 MB / 0.6866 GB, free: 28.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01466/1.18, allocations: 6.805 MB / 0.6933 GB, free: 26.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.363e-05/1.18, allocations: 63.95 kB / 0.6933 GB, free: 26.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=253): time 5.701e-06/1.18, allocations: 1.062 kB / 0.6933 GB, free: 26.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=305): time 0.0398/1.22, allocations: 16.62 MB / 0.7096 GB, free: 23.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/1.22, allocations: 84.25 kB / 0.7097 GB, free: 23.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00442/1.224, allocations: 2.968 MB / 0.7126 GB, free: 22.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003579/1.224, allocations: 76.58 kB / 0.7126 GB, free: 22.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001447/1.226, allocations: 2.646 MB / 0.7152 GB, free: 20.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007763/1.227, allocations: 1.035 MB / 0.7162 GB, free: 19.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/1.227, allocations: 76.09 kB / 0.7163 GB, free: 19.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/1.227, allocations: 460 kB / 0.7167 GB, free: 19.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002355/1.229, allocations: 1.646 MB / 0.7183 GB, free: 18.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002767/1.232, allocations: 2.823 MB / 0.7211 GB, free: 16.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002809/1.235, allocations: 2.122 MB / 0.7232 GB, free: 15.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.766e-05/1.235, allocations: 11.31 kB / 0.7232 GB, free: 15.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008703/1.244, allocations: 5.765 MB / 0.7288 GB, free: 13.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/1.244, allocations: 20.94 kB / 0.7288 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.205e-05/1.244, allocations: 45.66 kB / 0.7289 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/1.246, allocations: 0.8688 MB / 0.7297 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003078/1.249, allocations: 0.8946 MB / 0.7306 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009758/1.259, allocations: 10.06 MB / 0.7404 GB, free: 6.598 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003818/1.263, allocations: 247.8 kB / 0.7407 GB, free: 6.523 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004057/1.263, allocations: 170.2 kB / 0.7408 GB, free: 6.492 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (434): * Single equations (assignments): 425 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002906/1.266, allocations: 1.627 MB / 0.7424 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008479/1.267, allocations: 398.9 kB / 0.7428 GB, free: 5.453 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007333/1.274, allocations: 4.943 MB / 0.7476 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.017e-05/1.274, allocations: 29.41 kB / 0.7476 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/1.274, allocations: 10.84 kB / 0.7477 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/1.274, allocations: 15.47 kB / 0.7477 GB, free: 3.336 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/1.291, allocations: 10.66 MB / 0.7581 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006256/1.297, allocations: 4.183 MB / 0.7622 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002107/1.299, allocations: 0.5242 MB / 0.7627 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/1.301, allocations: 0.9879 MB / 0.7636 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002781/1.302, allocations: 78.5 kB / 0.7637 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01624/1.318, allocations: 15.14 MB / 0.7785 GB, free: 13.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/1.318, allocations: 8 kB / 0.7785 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01301/1.331, allocations: 7.832 MB / 0.7862 GB, free: 6.613 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00256/1.334, allocations: 0.7979 MB / 0.7869 GB, free: 5.883 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008019/1.335, allocations: 76.56 kB / 0.787 GB, free: 5.816 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002092/1.337, allocations: 193.8 kB / 0.7872 GB, free: 5.672 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004626/1.337, allocations: 222.4 kB / 0.7874 GB, free: 5.535 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002055/1.337, allocations: 91.12 kB / 0.7875 GB, free: 5.453 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003729/1.341, allocations: 2.247 MB / 0.7897 GB, free: 3.582 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.341, allocations: 0 / 0.7897 GB, free: 3.582 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004984/1.346, allocations: 1.214 MB / 0.7909 GB, free: 2.387 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 235 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01456/1.361, allocations: 9.814 MB / 0.8005 GB, free: 9.246 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009255/1.37, allocations: 5.058 MB / 0.8054 GB, free: 4.609 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.37, allocations: 0 / 0.8054 GB, free: 4.609 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0058/1.376, allocations: 3.221 MB / 0.8085 GB, free: 1.648 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005095/1.381, allocations: 0.8219 MB / 0.8093 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2743/1.655, allocations: 60.5 MB / 0.8684 GB, free: 45.47 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004296/1.66, allocations: 3.637 MB / 0.872 GB, free: 44.58 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003684/1.663, allocations: 0.852 MB / 0.8728 GB, free: 44.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003265/1.667, allocations: 2.24 MB / 0.875 GB, free: 44.48 MB / 458.7 MB Notification: Performance of SimCode: time 9.02e-07/1.667, allocations: 3.391 kB / 0.875 GB, free: 44.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1353/1.802, allocations: 98.01 MB / 0.9707 GB, free: 1.027 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/1.802, allocations: 224.9 kB / 0.9709 GB, free: 0.7852 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.771/6.573, allocations: 0 / 0.9709 GB, free: 0.7852 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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_res.mat does not exist to compare? outputFormat=mat