Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.0009929/0.0009929, allocations: 179.5 kB / 16.38 MB, free: 5.766 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.258/1.258, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0009373/0.0009373, allocations: 91.3 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1582/0.1582, allocations: 38.07 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002757/0.0002756, allocations: 11.98 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2349, allocations: 56.32 MB / 480.4 MB, free: 9.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.3565, allocations: 102.7 MB / 0.5695 GB, free: 15.66 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00179/0.3584, allocations: 0.876 MB / 0.5703 GB, free: 14.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04177/0.4002, allocations: 16.73 MB / 0.5867 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4002, allocations: 4 kB / 0.5867 GB, free: 13.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.606e-05/0.4003, allocations: 8 kB / 0.5867 GB, free: 13.85 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001522/0.4018, allocations: 0.8398 MB / 0.5875 GB, free: 12.96 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4018, allocations: 19.97 kB / 0.5875 GB, free: 12.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.402, allocations: 90.45 kB / 0.5876 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.4021, allocations: 63.2 kB / 0.5877 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.4037, allocations: 0.7723 MB / 0.5884 GB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.4038, allocations: 40.94 kB / 0.5885 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-05/0.4038, allocations: 44 kB / 0.5885 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007814/0.4046, allocations: 0.5151 MB / 0.589 GB, free: 11.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.4047, allocations: 0 / 0.589 GB, free: 11.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.401e-05/0.4047, allocations: 20 kB / 0.589 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.4047, allocations: 15.95 kB / 0.589 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000503/0.4052, allocations: 323.7 kB / 0.5893 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002364/0.4076, allocations: 2.081 MB / 0.5914 GB, free: 8.766 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003685/0.408, allocations: 231.7 kB / 0.5916 GB, free: 8.512 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.408, allocations: 8.281 kB / 0.5916 GB, free: 8.504 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.4083, allocations: 162.3 kB / 0.5918 GB, free: 8.324 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.4083, allocations: 0 / 0.5918 GB, free: 8.324 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.00153/0.4098, allocations: 0.9252 MB / 0.5927 GB, free: 7.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.4099, allocations: 136.8 kB / 0.5928 GB, free: 7.176 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.4103, allocations: 369.1 kB / 0.5931 GB, free: 6.816 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.4103, allocations: 37.64 kB / 0.5932 GB, free: 6.773 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.4105, allocations: 291.6 kB / 0.5935 GB, free: 6.484 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.628e-05/0.4106, allocations: 98.72 kB / 0.5936 GB, free: 6.387 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-05/0.4106, allocations: 8 kB / 0.5936 GB, free: 6.379 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.4107, allocations: 350.8 kB / 0.5939 GB, free: 6.027 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.4108, allocations: 84.83 kB / 0.594 GB, free: 5.945 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.4111, allocations: 225.7 kB / 0.5942 GB, free: 5.664 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.4113, allocations: 121.1 kB / 0.5943 GB, free: 5.547 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.4113, allocations: 7.953 kB / 0.5943 GB, free: 5.539 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007806/0.4121, allocations: 439.8 kB / 0.5947 GB, free: 5.102 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.4121, allocations: 4 kB / 0.5947 GB, free: 5.098 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.4121, allocations: 7.953 kB / 0.5947 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004029/0.4125, allocations: 89.06 kB / 0.5948 GB, free: 5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.4128, allocations: 83.84 kB / 0.5949 GB, free: 4.918 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/0.4145, allocations: 1.724 MB / 0.5966 GB, free: 3.066 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.4148, allocations: 23.91 kB / 0.5966 GB, free: 3.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.93e-05/0.4148, allocations: 23.98 kB / 0.5966 GB, free: 3.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002237/0.4151, allocations: 213.6 kB / 0.5968 GB, free: 2.801 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.245e-05/0.4151, allocations: 39.53 kB / 0.5969 GB, free: 2.762 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005151/0.4156, allocations: 278 kB / 0.5971 GB, free: 2.477 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.4157, allocations: 7.984 kB / 0.5972 GB, free: 2.469 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.4157, allocations: 0 / 0.5972 GB, free: 2.469 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.4157, allocations: 0 / 0.5972 GB, free: 2.469 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.4167, allocations: 0.7841 MB / 0.5979 GB, free: 1.625 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.4168, allocations: 0 / 0.5979 GB, free: 1.625 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.417, allocations: 43.98 kB / 0.598 GB, free: 1.582 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001964/0.4172, allocations: 48.8 kB / 0.598 GB, free: 1.531 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.4173, allocations: 8 kB / 0.598 GB, free: 1.523 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.4184, allocations: 1.456 MB / 0.5994 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4184, allocations: 0 / 0.5994 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006395/0.419, allocations: 493.3 kB / 0.5999 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001366/0.4192, allocations: 136.7 kB / 0.6 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.109e-05/0.4192, allocations: 8 kB / 0.6 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.4195, allocations: 23.92 kB / 0.6001 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.4195, allocations: 23.91 kB / 0.6001 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.4196, allocations: 4 kB / 0.6001 GB, free: 15.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000287/0.4199, allocations: 299.1 kB / 0.6004 GB, free: 14.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4199, allocations: 0 / 0.6004 GB, free: 14.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005289/0.4204, allocations: 132 kB / 0.6005 GB, free: 14.78 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001737/0.4221, allocations: 1.485 MB / 0.602 GB, free: 13.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006741/0.4228, allocations: 386.7 kB / 0.6023 GB, free: 12.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4228, allocations: 0 / 0.6023 GB, free: 12.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003528/0.4232, allocations: 234.6 kB / 0.6026 GB, free: 12.68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005562/0.4238, allocations: 122.5 kB / 0.6027 GB, free: 12.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.4286, allocations: 5.793 MB / 0.6083 GB, free: 6.617 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.429, allocations: 0.8934 MB / 0.6092 GB, free: 5.695 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000253/0.4292, allocations: 68.22 kB / 0.6093 GB, free: 5.629 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.4294, allocations: 175.4 kB / 0.6094 GB, free: 5.457 MB / 442.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4295, allocations: 0 / 0.6094 GB, free: 5.457 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.4556, allocations: 10.93 MB / 0.6201 GB, free: 10.52 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000223/0.4559, allocations: 262.2 kB / 0.6204 GB, free: 10.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.501, allocations: 0 / 0.6204 GB, free: 10.18 MB / 458.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat does not exist to compare? outputFormat=mat