Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.001872/0.001872, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008798/0.0008798, allocations: 86.7 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.701e-05/1.696e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.0986, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5042/0.6028, allocations: 107.6 MB / 470.8 MB, free: 4.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/0.6032, allocations: 83.2 kB / 470.9 MB, free: 4.145 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4787/1.082, allocations: 78.44 MB / 0.5364 GB, free: 86.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.082, allocations: 2.062 kB / 0.5364 GB, free: 86.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002646/1.082, allocations: 77.12 kB / 0.5365 GB, free: 86.86 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01185/1.094, allocations: 3.161 MB / 0.5396 GB, free: 85.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/1.094, allocations: 9.438 kB / 0.5396 GB, free: 85.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005375/1.1, allocations: 0.7225 MB / 0.5403 GB, free: 85.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/1.11, allocations: 3.282 MB / 0.5435 GB, free: 85.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003374/1.111, allocations: 101.7 kB / 0.5436 GB, free: 85.12 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001933/1.113, allocations: 183.9 kB / 0.5438 GB, free: 85.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009393/1.122, allocations: 3.105 MB / 0.5468 GB, free: 85.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008254/1.13, allocations: 3.606 MB / 0.5503 GB, free: 84.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.247e-05/1.13, allocations: 3.906 kB / 0.5504 GB, free: 84.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002659/1.131, allocations: 0 / 0.5504 GB, free: 84.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001338/1.131, allocations: 145.2 kB / 0.5505 GB, free: 84.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02011/1.151, allocations: 12.63 MB / 0.5628 GB, free: 82.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00511/1.156, allocations: 6.75 MB / 0.5694 GB, free: 77.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/1.158, allocations: 1.267 MB / 0.5707 GB, free: 77.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005712/1.164, allocations: 3.601 MB / 0.5742 GB, free: 76.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.982e-05/1.164, allocations: 45.77 kB / 0.5742 GB, free: 76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 2.855e-06/1.164, allocations: 0 / 0.5742 GB, free: 76 MB / 410.7 MB Notification: Performance of matching and sorting (n=120): time 0.007307/1.171, allocations: 3.998 MB / 0.5781 GB, free: 73.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/1.171, allocations: 65.88 kB / 0.5782 GB, free: 73.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001864/1.173, allocations: 1.208 MB / 0.5794 GB, free: 73.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.568e-05/1.173, allocations: 25.7 kB / 0.5794 GB, free: 73.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009756/1.174, allocations: 1.413 MB / 0.5808 GB, free: 72.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003224/1.174, allocations: 407.4 kB / 0.5812 GB, free: 71.94 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-05/1.174, allocations: 0 / 0.5812 GB, free: 71.94 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/1.175, allocations: 367.5 kB / 0.5815 GB, free: 71.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008593/1.175, allocations: 0.5585 MB / 0.582 GB, free: 71.37 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/1.177, allocations: 1.023 MB / 0.583 GB, free: 70.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/1.178, allocations: 0.8985 MB / 0.5839 GB, free: 70.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/1.178, allocations: 8.594 kB / 0.5839 GB, free: 70.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.003705/1.182, allocations: 2.167 MB / 0.586 GB, free: 69.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/1.182, allocations: 17.3 kB / 0.5861 GB, free: 69.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/1.182, allocations: 14.5 kB / 0.5861 GB, free: 69.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006739/1.183, allocations: 265.5 kB / 0.5863 GB, free: 69.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/1.184, allocations: 352 kB / 0.5867 GB, free: 69.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004083/1.188, allocations: 5.456 MB / 0.592 GB, free: 64.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/1.19, allocations: 47.61 kB / 0.592 GB, free: 64.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/1.19, allocations: 69.53 kB / 0.5921 GB, free: 64.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 174 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003378/1.19, allocations: 157.8 kB / 0.5923 GB, free: 64.42 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003265/1.193, allocations: 1.906 MB / 0.5941 GB, free: 63.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/1.194, allocations: 157.8 kB / 0.5943 GB, free: 63.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003418/1.197, allocations: 2.043 MB / 0.5963 GB, free: 62.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/1.197, allocations: 10.91 kB / 0.5963 GB, free: 62.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/1.197, allocations: 7.438 kB / 0.5963 GB, free: 62.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/1.197, allocations: 10.12 kB / 0.5963 GB, free: 62.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00823/1.205, allocations: 4.315 MB / 0.6005 GB, free: 60.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/1.205, allocations: 0 / 0.6005 GB, free: 60.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007536/1.206, allocations: 166.6 kB / 0.6007 GB, free: 60.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/1.207, allocations: 434.2 kB / 0.6011 GB, free: 60.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/1.208, allocations: 23.52 kB / 0.6011 GB, free: 60.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008088/1.216, allocations: 9.663 MB / 0.6105 GB, free: 52.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/1.216, allocations: 11.59 kB / 0.6105 GB, free: 52.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005227/1.221, allocations: 2.972 MB / 0.6135 GB, free: 50.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/1.222, allocations: 379.3 kB / 0.6138 GB, free: 50.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000602/1.223, allocations: 18.88 kB / 0.6138 GB, free: 50.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/1.224, allocations: 51.73 kB / 0.6139 GB, free: 50.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003084/1.225, allocations: 98.56 kB / 0.614 GB, free: 50.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.972e-05/1.225, allocations: 40.73 kB / 0.614 GB, free: 50.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00217/1.227, allocations: 0.9015 MB / 0.6149 GB, free: 49.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.227, allocations: 0 / 0.6149 GB, free: 49.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003264/1.23, allocations: 0.5014 MB / 0.6154 GB, free: 49.85 MB / 410.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.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 79 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005345/1.236, allocations: 4.219 MB / 0.6195 GB, free: 47.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0031/1.239, allocations: 1.868 MB / 0.6213 GB, free: 46.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.239, allocations: 0 / 0.6213 GB, free: 46.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002118/1.241, allocations: 1.41 MB / 0.6227 GB, free: 45.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/1.243, allocations: 349.2 kB / 0.623 GB, free: 45.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/1.254, allocations: 5.082 MB / 0.628 GB, free: 41.95 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001882/1.256, allocations: 2.334 MB / 0.6303 GB, free: 40.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001484/1.258, allocations: 354.2 kB / 0.6306 GB, free: 39.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/1.259, allocations: 1.084 MB / 0.6317 GB, free: 38.85 MB / 410.7 MB Notification: Performance of SimCode: time 1.192e-06/1.259, allocations: 0 / 0.6317 GB, free: 38.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07771/1.336, allocations: 41.46 MB / 0.6722 GB, free: 6.074 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/1.337, allocations: 162.1 kB / 0.6723 GB, free: 5.883 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.14/4.477, allocations: 0 / 0.6723 GB, free: 5.883 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat