Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",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.001014/0.001014, allocations: 176.2 kB / 8.348 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.353/1.353, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.000909/0.000909, allocations: 93.31 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.293e-05/2.243e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 50.43 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3563/0.4579, allocations: 102.4 MB / 490 MB, free: 8.289 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.4581, allocations: 88.98 kB / 490 MB, free: 8.203 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1065/0.5646, allocations: 40.65 MB / 0.5183 GB, free: 15.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5647, allocations: 3.938 kB / 0.5183 GB, free: 15.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001305/0.5648, allocations: 47.94 kB / 0.5183 GB, free: 15.21 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.004018/0.5688, allocations: 1.998 MB / 0.5203 GB, free: 13.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.5689, allocations: 12.02 kB / 0.5203 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008285/0.5697, allocations: 261.1 kB / 0.5205 GB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002467/0.5722, allocations: 1.416 MB / 0.5219 GB, free: 11.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.208e-05/0.5723, allocations: 56 kB / 0.522 GB, free: 11.37 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002303/0.5725, allocations: 107.9 kB / 0.5221 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002797/0.5753, allocations: 1.741 MB / 0.5238 GB, free: 9.523 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003301/0.5786, allocations: 2.065 MB / 0.5258 GB, free: 7.375 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/0.5787, allocations: 15.89 kB / 0.5258 GB, free: 7.359 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.5789, allocations: 0 / 0.5258 GB, free: 7.359 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-05/0.579, allocations: 79.5 kB / 0.5259 GB, free: 7.281 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0115/0.5905, allocations: 7.132 MB / 0.5328 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.5923, allocations: 1.243 MB / 0.534 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.5934, allocations: 0.7317 MB / 0.5348 GB, free: 13.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002774/0.5936, allocations: 129.8 kB / 0.5349 GB, free: 13.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.5937, allocations: 43.34 kB / 0.5349 GB, free: 13.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=87): time 2.675e-06/0.5937, allocations: 4 kB / 0.5349 GB, free: 13.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=103): time 0.00722/0.6009, allocations: 3.93 MB / 0.5388 GB, free: 9.703 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.601, allocations: 60.72 kB / 0.5388 GB, free: 9.633 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001409/0.6024, allocations: 0.9891 MB / 0.5398 GB, free: 8.633 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.819e-05/0.6025, allocations: 25.7 kB / 0.5398 GB, free: 8.602 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005934/0.6031, allocations: 0.8999 MB / 0.5407 GB, free: 7.688 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002589/0.6034, allocations: 346.8 kB / 0.541 GB, free: 7.344 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-05/0.6034, allocations: 0 / 0.541 GB, free: 7.344 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.6036, allocations: 361.9 kB / 0.5414 GB, free: 6.984 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008075/0.6044, allocations: 0.5805 MB / 0.5419 GB, free: 6.402 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009433/0.6053, allocations: 0.8691 MB / 0.5428 GB, free: 5.418 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009763/0.6063, allocations: 0.7245 MB / 0.5435 GB, free: 4.691 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.6063, allocations: 4 kB / 0.5435 GB, free: 4.688 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003768/0.6101, allocations: 2.254 MB / 0.5457 GB, free: 2.418 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.6101, allocations: 8 kB / 0.5457 GB, free: 2.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.6102, allocations: 12 kB / 0.5457 GB, free: 2.398 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001878/0.612, allocations: 0.7589 MB / 0.5465 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008887/0.6129, allocations: 235.7 kB / 0.5467 GB, free: 1.402 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2256/0.8386, allocations: 8.184 MB / 0.5547 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.8399, allocations: 62.27 kB / 0.5547 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.8401, allocations: 45.19 kB / 0.5548 GB, free: 108.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 109 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002269/0.8403, allocations: 130.8 kB / 0.5549 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002869/0.8432, allocations: 1.665 MB / 0.5565 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003279/0.8435, allocations: 132.8 kB / 0.5567 GB, free: 108.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003156/0.8467, allocations: 1.785 MB / 0.5584 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.8467, allocations: 15.16 kB / 0.5584 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.8468, allocations: 3.25 kB / 0.5584 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.8468, allocations: 4.922 kB / 0.5584 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007112/0.8539, allocations: 3.625 MB / 0.562 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.854, allocations: 4.875 kB / 0.562 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008865/0.8548, allocations: 199.6 kB / 0.5622 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/0.8561, allocations: 461.9 kB / 0.5626 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.49e-05/0.8562, allocations: 19.39 kB / 0.5626 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005058/0.8613, allocations: 5.9 MB / 0.5684 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.8613, allocations: 5.344 kB / 0.5684 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004073/0.8654, allocations: 2.747 MB / 0.5711 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007825/0.8662, allocations: 346.7 kB / 0.5714 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001776/0.8664, allocations: 9.906 kB / 0.5714 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007254/0.8671, allocations: 60.19 kB / 0.5715 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.8673, allocations: 78.56 kB / 0.5715 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.471e-05/0.8674, allocations: 35.62 kB / 0.5716 GB, free: 103.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001136/0.8686, allocations: 0.7501 MB / 0.5723 GB, free: 103 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.8686, allocations: 0 / 0.5723 GB, free: 103 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001775/0.8704, allocations: 403.1 kB / 0.5727 GB, free: 103 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 83 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003954/0.8743, allocations: 3.953 MB / 0.5765 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002841/0.8772, allocations: 1.911 MB / 0.5784 GB, free: 99.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.8772, allocations: 0 / 0.5784 GB, free: 99.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.8789, allocations: 1.287 MB / 0.5797 GB, free: 99.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/0.8805, allocations: 269.1 kB / 0.5799 GB, free: 99.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005795/0.8863, allocations: 3.71 MB / 0.5835 GB, free: 97.72 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.8874, allocations: 1.734 MB / 0.5852 GB, free: 96.82 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009556/0.8884, allocations: 297.4 kB / 0.5855 GB, free: 96.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007122/0.8891, allocations: 0.7022 MB / 0.5862 GB, free: 96.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.233e-06/0.8891, allocations: 0 / 0.5862 GB, free: 96.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0608/0.9499, allocations: 33.57 MB / 0.619 GB, free: 84.46 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.9502, allocations: 159.5 kB / 0.6191 GB, free: 84.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.763/3.713, allocations: 10.11 kB / 0.6192 GB, free: 84.27 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat