Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000904/0.0009039, allocations: 87.47 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.907e-05/1.909e-05, allocations: 4 kB / 337.2 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 50.43 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.46/0.5747, allocations: 136.7 MB / 0.5119 GB, free: 5.914 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/0.575, allocations: 95.94 kB / 0.512 GB, free: 5.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5669/1.142, allocations: 129.9 MB / 0.6389 GB, free: 68.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.142, allocations: 4 kB / 0.6389 GB, free: 68.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004894/1.142, allocations: 151.7 kB / 0.639 GB, free: 68.4 MB / 426.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.02009/1.163, allocations: 5.42 MB / 0.6443 GB, free: 62.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.001e-05/1.163, allocations: 8.031 kB / 0.6443 GB, free: 62.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008813/1.171, allocations: 1.16 MB / 0.6455 GB, free: 61.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01544/1.187, allocations: 4.9 MB / 0.6502 GB, free: 56.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004025/1.187, allocations: 188 kB / 0.6504 GB, free: 56.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002582/1.19, allocations: 343.8 kB / 0.6508 GB, free: 56.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01413/1.204, allocations: 5.252 MB / 0.6559 GB, free: 51.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0227/1.227, allocations: 6.215 MB / 0.6619 GB, free: 44.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000316/1.227, allocations: 15.84 kB / 0.662 GB, free: 44.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001762/1.229, allocations: 8 kB / 0.662 GB, free: 44.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002203/1.229, allocations: 255.2 kB / 0.6622 GB, free: 44.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0445/1.274, allocations: 22.83 MB / 0.6845 GB, free: 21.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007985/1.282, allocations: 8.532 MB / 0.6928 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004607/1.287, allocations: 2.15 MB / 0.6949 GB, free: 9.531 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01514/1.302, allocations: 6.787 MB / 0.7016 GB, free: 2.613 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/1.302, allocations: 60.56 kB / 0.7016 GB, free: 2.547 MB / 426.7 MB Notification: Performance of pre-optimization done (n=241): time 6.121e-06/1.302, allocations: 0 / 0.7016 GB, free: 2.547 MB / 426.7 MB Notification: Performance of matching and sorting (n=292): time 0.3447/1.647, allocations: 10.3 MB / 0.7117 GB, free: 66.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/1.647, allocations: 84.91 kB / 0.7118 GB, free: 66.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006465/1.653, allocations: 2.383 MB / 0.7141 GB, free: 66.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006159/1.654, allocations: 27.67 kB / 0.7141 GB, free: 66.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002629/1.656, allocations: 2.685 MB / 0.7167 GB, free: 65.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001425/1.658, allocations: 0.9558 MB / 0.7177 GB, free: 64.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000557/1.658, allocations: 0 / 0.7177 GB, free: 64.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000348/1.659, allocations: 457.1 kB / 0.7181 GB, free: 64.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003421/1.662, allocations: 1.408 MB / 0.7195 GB, free: 64.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004103/1.666, allocations: 2.565 MB / 0.722 GB, free: 62.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00556/1.672, allocations: 2.038 MB / 0.724 GB, free: 62.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001125/1.672, allocations: 10.81 kB / 0.724 GB, free: 62.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.01624/1.688, allocations: 5.143 MB / 0.729 GB, free: 62.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.968e-05/1.689, allocations: 22.53 kB / 0.729 GB, free: 62.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001172/1.689, allocations: 40.64 kB / 0.7291 GB, free: 62.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002268/1.691, allocations: 0.8538 MB / 0.7299 GB, free: 62.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003914/1.695, allocations: 0.8645 MB / 0.7308 GB, free: 62.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/1.706, allocations: 9.357 MB / 0.7399 GB, free: 58.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004207/1.71, allocations: 170.8 kB / 0.7401 GB, free: 58.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009378/1.711, allocations: 175.4 kB / 0.7402 GB, free: 58.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 416 * 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.001506/1.713, allocations: 207.6 kB / 0.7404 GB, free: 58.1 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008902/1.722, allocations: 4.17 MB / 0.7445 GB, free: 57.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.723, allocations: 349.5 kB / 0.7448 GB, free: 57.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008884/1.732, allocations: 4.419 MB / 0.7491 GB, free: 56.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/1.732, allocations: 30 kB / 0.7492 GB, free: 56.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.883e-05/1.732, allocations: 11.33 kB / 0.7492 GB, free: 56.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.782e-05/1.732, allocations: 17.77 kB / 0.7492 GB, free: 56.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02252/1.755, allocations: 9.183 MB / 0.7582 GB, free: 55.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006786/1.761, allocations: 3.81 MB / 0.7619 GB, free: 53.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002297/1.764, allocations: 0.5075 MB / 0.7624 GB, free: 53.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002503/1.766, allocations: 0.9584 MB / 0.7633 GB, free: 53.28 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004802/1.767, allocations: 33.41 kB / 0.7633 GB, free: 53.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01339/1.78, allocations: 14.22 MB / 0.7772 GB, free: 42.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/1.78, allocations: 5.719 kB / 0.7772 GB, free: 42.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/1.792, allocations: 6.974 MB / 0.784 GB, free: 39.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002549/1.794, allocations: 0.7316 MB / 0.7848 GB, free: 38.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001421/1.796, allocations: 19.88 kB / 0.7848 GB, free: 38.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003001/1.799, allocations: 155.5 kB / 0.7849 GB, free: 38.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007106/1.799, allocations: 205.2 kB / 0.7851 GB, free: 38.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003549/1.8, allocations: 86.53 kB / 0.7852 GB, free: 38.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00403/1.804, allocations: 1.756 MB / 0.7869 GB, free: 37.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.804, allocations: 2.25 kB / 0.7869 GB, free: 37.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007052/1.811, allocations: 1.029 MB / 0.7879 GB, free: 37.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (229): * Single equations (assignments): 220 * 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.01318/1.824, allocations: 8.863 MB / 0.7966 GB, free: 31.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00756/1.832, allocations: 4.482 MB / 0.801 GB, free: 27.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/1.832, allocations: 0.6875 kB / 0.801 GB, free: 27.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004599/1.836, allocations: 2.885 MB / 0.8038 GB, free: 24.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004416/1.841, allocations: 0.6047 MB / 0.8044 GB, free: 24.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02556/1.867, allocations: 9.672 MB / 0.8138 GB, free: 15.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005435/1.872, allocations: 3.622 MB / 0.8174 GB, free: 13.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003783/1.876, allocations: 0.8044 MB / 0.8181 GB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003681/1.88, allocations: 2.212 MB / 0.8203 GB, free: 10.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.332e-06/1.88, allocations: 0 / 0.8203 GB, free: 10.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4401/2.32, allocations: 82.74 MB / 0.9011 GB, free: 81.23 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001503/2.32, allocations: 185.3 kB / 0.9013 GB, free: 81.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.679/6.999, allocations: 0 / 0.9013 GB, free: 81.04 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat