Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001123/0.001123, allocations: 197.8 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 227.2 MB / 245 MB, free: 7.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009027/0.0009027, allocations: 100.8 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002518/0.0002518, allocations: 4 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2119, allocations: 51.5 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.331, allocations: 106.6 MB / 0.504 GB, free: 16 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.1851/0.5162, allocations: 87.25 kB / 0.5041 GB, free: 95.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1093/0.6255, allocations: 46.4 MB / 0.5494 GB, free: 62.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6256, allocations: 0 / 0.5494 GB, free: 62.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002291/0.6258, allocations: 63.92 kB / 0.5494 GB, free: 62.34 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.006246/0.6321, allocations: 2.524 MB / 0.5519 GB, free: 59.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.6321, allocations: 8.031 kB / 0.5519 GB, free: 59.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008923/0.633, allocations: 316 kB / 0.5522 GB, free: 59.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.6343, allocations: 300.8 kB / 0.5525 GB, free: 59.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003923/0.6382, allocations: 1.608 MB / 0.5541 GB, free: 57.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.6383, allocations: 160.2 kB / 0.5542 GB, free: 57.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005392/0.6389, allocations: 216.6 kB / 0.5544 GB, free: 57.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004966/0.6439, allocations: 2.777 MB / 0.5571 GB, free: 54.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.572e-05/0.644, allocations: 4 kB / 0.5571 GB, free: 54.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003/0.6443, allocations: 95.92 kB / 0.5572 GB, free: 54.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.79e-05/0.6444, allocations: 100.1 kB / 0.5573 GB, free: 53.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003951/0.6483, allocations: 2.242 MB / 0.5595 GB, free: 51.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01233/0.6607, allocations: 8.628 MB / 0.5679 GB, free: 42.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.6627, allocations: 1.753 MB / 0.5696 GB, free: 40.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000277/0.663, allocations: 227.1 kB / 0.5699 GB, free: 40.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.6631, allocations: 43.56 kB / 0.5699 GB, free: 40.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.257e-06/0.6631, allocations: 448 / 0.5699 GB, free: 40.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01355/0.6766, allocations: 7.197 MB / 0.5769 GB, free: 33.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.6767, allocations: 64.41 kB / 0.577 GB, free: 33.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001792/0.6785, allocations: 1.247 MB / 0.5782 GB, free: 31.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.264e-05/0.6786, allocations: 49.7 kB / 0.5783 GB, free: 31.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004761/0.6791, allocations: 1.034 MB / 0.5793 GB, free: 30.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002454/0.6793, allocations: 433.7 kB / 0.5797 GB, free: 30.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.345e-05/0.6794, allocations: 32 kB / 0.5797 GB, free: 30.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.804e-05/0.6795, allocations: 365.9 kB / 0.5801 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.6805, allocations: 0.7574 MB / 0.5808 GB, free: 29.31 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.6816, allocations: 1.119 MB / 0.5819 GB, free: 28.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.6828, allocations: 0.9276 MB / 0.5828 GB, free: 27.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.6828, allocations: 4 kB / 0.5828 GB, free: 27.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.003669/0.6865, allocations: 2.614 MB / 0.5854 GB, free: 24.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.6865, allocations: 15.89 kB / 0.5854 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.6865, allocations: 12 kB / 0.5854 GB, free: 24.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.6878, allocations: 0.5806 MB / 0.5859 GB, free: 23.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.6889, allocations: 339.5 kB / 0.5863 GB, free: 23.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006053/0.695, allocations: 6.542 MB / 0.5927 GB, free: 16.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.6962, allocations: 111.8 kB / 0.5928 GB, free: 16.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.6964, allocations: 60 kB / 0.5928 GB, free: 16.54 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.001136/0.6975, allocations: 0.7003 MB / 0.5935 GB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003149/0.6978, allocations: 162 kB / 0.5937 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003675/0.7015, allocations: 2.39 MB / 0.596 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.7016, allocations: 16 kB / 0.596 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.7016, allocations: 8.125 kB / 0.596 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.7016, allocations: 11.97 kB / 0.596 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007558/0.7092, allocations: 4.782 MB / 0.6007 GB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.7092, allocations: 7.938 kB / 0.6007 GB, free: 8.344 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008666/0.71, allocations: 211.9 kB / 0.6009 GB, free: 8.137 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001504/0.7116, allocations: 0.6398 MB / 0.6015 GB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.7117, allocations: 31.98 kB / 0.6016 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007856/0.7195, allocations: 8.323 MB / 0.6097 GB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.7196, allocations: 7.938 kB / 0.6097 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006773/0.7264, allocations: 3.525 MB / 0.6131 GB, free: 11.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/0.7279, allocations: 395 kB / 0.6135 GB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005915/0.7285, allocations: 27.98 kB / 0.6135 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/0.7299, allocations: 95.89 kB / 0.6136 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003367/0.7303, allocations: 104.8 kB / 0.6137 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.7304, allocations: 35.98 kB / 0.6138 GB, free: 10.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002068/0.7325, allocations: 0.9615 MB / 0.6147 GB, free: 9.469 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.7325, allocations: 0 / 0.6147 GB, free: 9.469 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002261/0.7347, allocations: 0.5195 MB / 0.6152 GB, free: 8.949 MB / 394.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.006891/0.7416, allocations: 4.752 MB / 0.6199 GB, free: 4.109 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004398/0.7461, allocations: 2.38 MB / 0.6222 GB, free: 1.688 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.7461, allocations: 0 / 0.6222 GB, free: 1.688 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002799/0.7489, allocations: 1.544 MB / 0.6237 GB, free: 104 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002259/0.7512, allocations: 372.7 kB / 0.624 GB, free: 15.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.029/0.7802, allocations: 21.15 MB / 0.6447 GB, free: 9.883 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002177/0.7824, allocations: 1.862 MB / 0.6465 GB, free: 7.984 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001398/0.7839, allocations: 358 kB / 0.6469 GB, free: 7.629 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/0.7851, allocations: 0.8234 MB / 0.6477 GB, free: 6.805 MB / 426.7 MB Notification: Performance of SimCode: time 1.052e-06/0.7852, allocations: 0 / 0.6477 GB, free: 6.805 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2588/1.044, allocations: 44.31 MB / 0.6909 GB, free: 120 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/1.044, allocations: 224 kB / 0.6911 GB, free: 119.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.018/4.062, allocations: 0 / 0.6911 GB, free: 119.8 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat