Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",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.001308/0.001308, 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.397/1.397, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0008802/0.0008801, allocations: 95.27 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.285e-05/2.295e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1337, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4967/0.6304, allocations: 108.3 MB / 495.9 MB, free: 2.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003482/0.6308, allocations: 87.95 kB / 496 MB, free: 2.336 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1896/0.8204, allocations: 49.46 MB / 0.5326 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.8205, allocations: 4 kB / 0.5326 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002358/0.8207, allocations: 63.94 kB / 0.5327 GB, free: 0.5 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.007105/0.8278, allocations: 2.372 MB / 0.535 GB, free: 14.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.8279, allocations: 12.02 kB / 0.535 GB, free: 14.06 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001546/0.8295, allocations: 316.5 kB / 0.5353 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005511/0.835, allocations: 1.695 MB / 0.537 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.8352, allocations: 72 kB / 0.5371 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006469/0.8358, allocations: 132 kB / 0.5372 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006538/0.8424, allocations: 2.075 MB / 0.5392 GB, free: 9.715 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007484/0.8499, allocations: 2.492 MB / 0.5416 GB, free: 7.082 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.713e-05/0.8501, allocations: 7.906 kB / 0.5417 GB, free: 7.074 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002798/0.8504, allocations: 8 kB / 0.5417 GB, free: 7.066 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001762/0.8506, allocations: 104.3 kB / 0.5418 GB, free: 6.961 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3352/1.186, allocations: 8.695 MB / 0.5503 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003089/1.189, allocations: 1.667 MB / 0.5519 GB, free: 103 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001646/1.191, allocations: 0.7738 MB / 0.5526 GB, free: 103 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004309/1.191, allocations: 222.8 kB / 0.5529 GB, free: 102.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/1.191, allocations: 47.97 kB / 0.5529 GB, free: 102.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 4.198e-06/1.191, allocations: 0 / 0.5529 GB, free: 102.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01398/1.205, allocations: 4.94 MB / 0.5577 GB, free: 102.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/1.205, allocations: 65.97 kB / 0.5578 GB, free: 102.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002712/1.208, allocations: 1.112 MB / 0.5589 GB, free: 101.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001827/1.208, allocations: 25.7 kB / 0.5589 GB, free: 101.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009911/1.209, allocations: 1.109 MB / 0.56 GB, free: 101.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005514/1.21, allocations: 454.3 kB / 0.5604 GB, free: 101.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/1.21, allocations: 0 / 0.5604 GB, free: 101.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/1.21, allocations: 368 kB / 0.5608 GB, free: 101 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001614/1.212, allocations: 0.6946 MB / 0.5614 GB, free: 101 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/1.213, allocations: 1.098 MB / 0.5625 GB, free: 100.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/1.215, allocations: 0.8863 MB / 0.5634 GB, free: 100.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/1.215, allocations: 2.812 kB / 0.5634 GB, free: 100.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.006149/1.221, allocations: 2.444 MB / 0.5658 GB, free: 100.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/1.221, allocations: 9.344 kB / 0.5658 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.515e-05/1.222, allocations: 16.22 kB / 0.5658 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002176/1.224, allocations: 0.5807 MB / 0.5664 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/1.226, allocations: 368.7 kB / 0.5667 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01106/1.237, allocations: 6.426 MB / 0.573 GB, free: 97.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/1.239, allocations: 85.39 kB / 0.5731 GB, free: 97.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003494/1.24, allocations: 70.55 kB / 0.5731 GB, free: 97.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005434/1.24, allocations: 143.4 kB / 0.5733 GB, free: 97.61 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005236/1.245, allocations: 2.07 MB / 0.5753 GB, free: 97.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005798/1.246, allocations: 166 kB / 0.5755 GB, free: 97.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005107/1.251, allocations: 2.221 MB / 0.5776 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/1.251, allocations: 17.47 kB / 0.5776 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-05/1.251, allocations: 7.859 kB / 0.5776 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.089e-05/1.251, allocations: 11.45 kB / 0.5777 GB, free: 96.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009978/1.261, allocations: 4.549 MB / 0.5821 GB, free: 94.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/1.261, allocations: 3.969 kB / 0.5821 GB, free: 94.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/1.263, allocations: 229.2 kB / 0.5823 GB, free: 94.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002134/1.265, allocations: 0.6306 MB / 0.5829 GB, free: 94.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/1.265, allocations: 16.77 kB / 0.583 GB, free: 94.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/1.275, allocations: 8.077 MB / 0.5908 GB, free: 89.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/1.275, allocations: 6.672 kB / 0.5908 GB, free: 89.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006306/1.282, allocations: 3.46 MB / 0.5942 GB, free: 87.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/1.283, allocations: 407.8 kB / 0.5946 GB, free: 87.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003196/1.283, allocations: 10.16 kB / 0.5946 GB, free: 87.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/1.284, allocations: 78.62 kB / 0.5947 GB, free: 87.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00031/1.285, allocations: 112.7 kB / 0.5948 GB, free: 87.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/1.285, allocations: 40.89 kB / 0.5948 GB, free: 87.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001469/1.286, allocations: 0.8342 MB / 0.5957 GB, free: 86.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.286, allocations: 0 / 0.5957 GB, free: 86.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002404/1.289, allocations: 484.4 kB / 0.5961 GB, free: 86.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * 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,72.2%) 23,(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.00665/1.295, allocations: 5.046 MB / 0.601 GB, free: 83.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004339/1.3, allocations: 2.249 MB / 0.6032 GB, free: 82.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.3, allocations: 3.406 kB / 0.6032 GB, free: 82.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002785/1.303, allocations: 1.441 MB / 0.6047 GB, free: 82.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00241/1.305, allocations: 346.6 kB / 0.605 GB, free: 82.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008703/1.314, allocations: 4.352 MB / 0.6092 GB, free: 80.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001492/1.315, allocations: 1.932 MB / 0.6111 GB, free: 79.29 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001254/1.316, allocations: 371.4 kB / 0.6115 GB, free: 79.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009683/1.317, allocations: 0.8886 MB / 0.6123 GB, free: 78.54 MB / 426.7 MB Notification: Performance of SimCode: time 4.2e-07/1.317, allocations: 0 / 0.6123 GB, free: 78.54 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06868/1.386, allocations: 40.84 MB / 0.6522 GB, free: 49.82 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/1.386, allocations: 160.3 kB / 0.6524 GB, free: 49.64 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.958/4.344, allocations: 5.25 kB / 0.6524 GB, free: 49.63 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat