Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",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.001579/0.001579, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.974/1.974, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001551/0.00155, allocations: 88.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.00039, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3349, allocations: 47.56 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1721/0.5071, allocations: 105.5 MB / 480.1 MB, free: 7.121 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/0.5075, allocations: 91.89 kB / 480.2 MB, free: 7.031 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4645/0.972, allocations: 46.06 MB / 0.5139 GB, free: 95.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.9721, allocations: 4 kB / 0.5139 GB, free: 95.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002496/0.9723, allocations: 61.3 kB / 0.514 GB, free: 95.94 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.009551/0.9819, allocations: 2.497 MB / 0.5164 GB, free: 94.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.982, allocations: 10.75 kB / 0.5164 GB, free: 94.62 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001339/0.9833, allocations: 316.7 kB / 0.5167 GB, free: 94.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001622/0.985, allocations: 304.3 kB / 0.517 GB, free: 94.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005712/0.9907, allocations: 1.606 MB / 0.5186 GB, free: 93.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.991, allocations: 162.4 kB / 0.5188 GB, free: 93.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009025/0.9919, allocations: 206.9 kB / 0.519 GB, free: 93.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008807/1.001, allocations: 2.779 MB / 0.5217 GB, free: 91.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000129/1.001, allocations: 7.125 kB / 0.5217 GB, free: 91.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004133/1.001, allocations: 97.86 kB / 0.5218 GB, free: 91.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001364/1.001, allocations: 101.4 kB / 0.5219 GB, free: 91.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007755/1.009, allocations: 2.244 MB / 0.5241 GB, free: 90.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02337/1.033, allocations: 8.621 MB / 0.5325 GB, free: 82.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004358/1.037, allocations: 1.764 MB / 0.5342 GB, free: 80.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005618/1.038, allocations: 215.4 kB / 0.5344 GB, free: 79.92 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/1.038, allocations: 51.56 kB / 0.5345 GB, free: 79.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.737e-06/1.038, allocations: 3.938 kB / 0.5345 GB, free: 79.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.0279/1.066, allocations: 7.056 MB / 0.5413 GB, free: 72.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/1.066, allocations: 64.41 kB / 0.5414 GB, free: 72.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002719/1.068, allocations: 1.25 MB / 0.5426 GB, free: 71.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003398/1.069, allocations: 45.7 kB / 0.5427 GB, free: 71.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006929/1.07, allocations: 0.9875 MB / 0.5436 GB, free: 70.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005402/1.07, allocations: 441.4 kB / 0.5441 GB, free: 69.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/1.07, allocations: 31.94 kB / 0.5441 GB, free: 69.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/1.07, allocations: 366.8 kB / 0.5444 GB, free: 69.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002058/1.073, allocations: 0.7535 MB / 0.5452 GB, free: 68.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002421/1.075, allocations: 1.126 MB / 0.5463 GB, free: 67.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002505/1.078, allocations: 0.9237 MB / 0.5472 GB, free: 66.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.277e-05/1.078, allocations: 11.94 kB / 0.5472 GB, free: 66.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.007132/1.085, allocations: 2.51 MB / 0.5496 GB, free: 64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.73e-05/1.085, allocations: 16.02 kB / 0.5497 GB, free: 63.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-05/1.085, allocations: 12 kB / 0.5497 GB, free: 63.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002443/1.087, allocations: 0.5804 MB / 0.5502 GB, free: 63.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002504/1.09, allocations: 339.5 kB / 0.5506 GB, free: 63.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/1.101, allocations: 6.527 MB / 0.5569 GB, free: 56.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002269/1.104, allocations: 115.9 kB / 0.557 GB, free: 56.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/1.104, allocations: 63.98 kB / 0.5571 GB, free: 56.08 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (157): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001725/1.106, allocations: 0.6909 MB / 0.5578 GB, free: 55.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005156/1.106, allocations: 170 kB / 0.5579 GB, free: 55.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006619/1.113, allocations: 2.398 MB / 0.5603 GB, free: 52.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-05/1.113, allocations: 12 kB / 0.5603 GB, free: 52.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/1.113, allocations: 8 kB / 0.5603 GB, free: 52.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/1.113, allocations: 3.984 kB / 0.5603 GB, free: 52.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01305/1.126, allocations: 4.786 MB / 0.565 GB, free: 47.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/1.126, allocations: 0 / 0.565 GB, free: 47.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/1.128, allocations: 211.9 kB / 0.5652 GB, free: 47.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002762/1.13, allocations: 0.6388 MB / 0.5658 GB, free: 47.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001804/1.131, allocations: 27.98 kB / 0.5658 GB, free: 47.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/1.144, allocations: 8.322 MB / 0.574 GB, free: 38.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.144, allocations: 0 / 0.574 GB, free: 38.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008402/1.152, allocations: 3.526 MB / 0.5774 GB, free: 34.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/1.153, allocations: 398.9 kB / 0.5778 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000373/1.154, allocations: 31.98 kB / 0.5778 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/1.155, allocations: 99.89 kB / 0.5779 GB, free: 34.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003595/1.156, allocations: 96.81 kB / 0.578 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/1.156, allocations: 43.98 kB / 0.578 GB, free: 34.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001938/1.158, allocations: 0.9576 MB / 0.579 GB, free: 33.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.158, allocations: 0 / 0.579 GB, free: 33.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002315/1.16, allocations: 0.5156 MB / 0.5795 GB, free: 32.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * 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 (97): * Single equations (assignments): 94 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009116/1.169, allocations: 4.753 MB / 0.5841 GB, free: 27.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005933/1.175, allocations: 2.384 MB / 0.5865 GB, free: 25.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.175, allocations: 0 / 0.5865 GB, free: 25.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004011/1.179, allocations: 1.536 MB / 0.588 GB, free: 23.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/1.182, allocations: 370.9 kB / 0.5883 GB, free: 23.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03369/1.216, allocations: 21.18 MB / 0.609 GB, free: 1.461 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/1.218, allocations: 1.839 MB / 0.6108 GB, free: 15.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002099/1.22, allocations: 0.8351 MB / 0.6116 GB, free: 14.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.143e-06/1.22, allocations: 4 kB / 0.6116 GB, free: 14.75 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.137/5.357, allocations: 68.21 MB / 0.6782 GB, free: 104 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat