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.001559/0.001559, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009282/0.0009281, allocations: 86.14 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1736/0.1736, allocations: 38 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.777e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1246, allocations: 56.33 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4296/0.5542, allocations: 102 MB / 0.5556 GB, free: 8.801 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001678/0.556, allocations: 0.5815 MB / 0.5562 GB, free: 8.219 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04382/0.5998, allocations: 16.55 MB / 0.5724 GB, free: 7.504 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5999, allocations: 4 kB / 0.5724 GB, free: 7.5 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.72e-05/0.5999, allocations: 12 kB / 0.5724 GB, free: 7.488 MB / 411.1 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.00135/0.6013, allocations: 0.7737 MB / 0.5731 GB, free: 6.668 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.6013, allocations: 8.031 kB / 0.5731 GB, free: 6.66 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.6014, allocations: 71.14 kB / 0.5732 GB, free: 6.59 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.603, allocations: 0.7461 MB / 0.5739 GB, free: 5.797 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.6031, allocations: 16 kB / 0.574 GB, free: 5.781 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.725e-05/0.6031, allocations: 31.91 kB / 0.574 GB, free: 5.75 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005033/0.6037, allocations: 282.5 kB / 0.5743 GB, free: 5.477 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007119/0.6044, allocations: 464.5 kB / 0.5747 GB, free: 4.98 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.6044, allocations: 4 kB / 0.5747 GB, free: 4.977 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.6044, allocations: 0 / 0.5747 GB, free: 4.977 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.6045, allocations: 15.95 kB / 0.5747 GB, free: 4.961 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002468/0.6069, allocations: 1.99 MB / 0.5767 GB, free: 2.863 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003587/0.6073, allocations: 219.6 kB / 0.5769 GB, free: 2.621 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.6074, allocations: 78.64 kB / 0.5769 GB, free: 2.535 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.6075, allocations: 0 / 0.5769 GB, free: 2.535 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.6077, allocations: 150.5 kB / 0.5771 GB, free: 2.367 MB / 411.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.6077, allocations: 0 / 0.5771 GB, free: 2.367 MB / 411.1 MB Notification: Performance of matching and sorting (n=25): time 0.001467/0.6092, allocations: 0.8105 MB / 0.5779 GB, free: 1.496 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.455e-05/0.6093, allocations: 132.5 kB / 0.578 GB, free: 1.336 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003823/0.6097, allocations: 341.1 kB / 0.5783 GB, free: 0.9922 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.6097, allocations: 25.7 kB / 0.5784 GB, free: 0.9609 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.6099, allocations: 299.4 kB / 0.5786 GB, free: 0.6641 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.587e-05/0.61, allocations: 82.88 kB / 0.5787 GB, free: 0.582 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.61, allocations: 0 / 0.5787 GB, free: 0.582 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.6102, allocations: 354.8 kB / 0.5791 GB, free: 232 kB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.6103, allocations: 68.88 kB / 0.5791 GB, free: 164 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.6106, allocations: 212.9 kB / 0.5793 GB, free: 15.89 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.6107, allocations: 103 kB / 0.5794 GB, free: 15.79 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6107, allocations: 0 / 0.5794 GB, free: 15.79 MB / 427.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007435/0.6115, allocations: 392.1 kB / 0.5798 GB, free: 15.4 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.6115, allocations: 12.06 kB / 0.5798 GB, free: 15.39 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.6116, allocations: 4 kB / 0.5798 GB, free: 15.39 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000396/0.612, allocations: 100.9 kB / 0.5799 GB, free: 15.29 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.6122, allocations: 79.84 kB / 0.58 GB, free: 15.21 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001802/0.614, allocations: 1.62 MB / 0.5816 GB, free: 13.47 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002441/0.6143, allocations: 23.95 kB / 0.5816 GB, free: 13.45 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.6143, allocations: 16 kB / 0.5816 GB, free: 13.43 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_par.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real 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 () * 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.0001502/0.6145, allocations: 117.9 kB / 0.5817 GB, free: 13.31 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004614/0.615, allocations: 253.5 kB / 0.582 GB, free: 13.05 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.438e-05/0.615, allocations: 39.53 kB / 0.582 GB, free: 13.02 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004996/0.6155, allocations: 253.8 kB / 0.5822 GB, free: 12.76 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.6155, allocations: 4 kB / 0.5822 GB, free: 12.76 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.6156, allocations: 4 kB / 0.5822 GB, free: 12.75 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.6156, allocations: 3.953 kB / 0.5822 GB, free: 12.75 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.6166, allocations: 0.6947 MB / 0.5829 GB, free: 12.01 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.6166, allocations: 7.953 kB / 0.5829 GB, free: 12 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002564/0.6169, allocations: 51.97 kB / 0.583 GB, free: 11.95 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001975/0.6171, allocations: 44.81 kB / 0.583 GB, free: 11.9 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.6171, allocations: 4 kB / 0.583 GB, free: 11.9 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.6183, allocations: 1.389 MB / 0.5844 GB, free: 10.39 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6183, allocations: 3.938 kB / 0.5844 GB, free: 10.38 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006455/0.619, allocations: 470 kB / 0.5848 GB, free: 9.887 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.6191, allocations: 132.6 kB / 0.585 GB, free: 9.738 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.078e-05/0.6192, allocations: 4 kB / 0.585 GB, free: 9.734 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.6194, allocations: 11.98 kB / 0.585 GB, free: 9.723 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.969e-05/0.6195, allocations: 23.92 kB / 0.585 GB, free: 9.699 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.6195, allocations: 12 kB / 0.585 GB, free: 9.688 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002887/0.6198, allocations: 255 kB / 0.5853 GB, free: 9.441 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6198, allocations: 0 / 0.5853 GB, free: 9.441 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.000546/0.6203, allocations: 115.9 kB / 0.5854 GB, free: 9.328 MB / 427.1 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 () * 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.001838/0.6222, allocations: 1.41 MB / 0.5867 GB, free: 7.906 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.000703/0.6229, allocations: 350.1 kB / 0.5871 GB, free: 7.555 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.6229, allocations: 3.938 kB / 0.5871 GB, free: 7.551 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.6233, allocations: 237.2 kB / 0.5873 GB, free: 7.309 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005783/0.6239, allocations: 106.4 kB / 0.5874 GB, free: 7.207 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.6258, allocations: 0.9934 MB / 0.5884 GB, free: 6.164 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.6263, allocations: 0.8931 MB / 0.5893 GB, free: 5.246 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0002373/0.6265, allocations: 63.34 kB / 0.5893 GB, free: 5.184 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.6268, allocations: 171.4 kB / 0.5895 GB, free: 5.016 MB / 427.1 MB Notification: Performance of SimCode: time 2.5e-07/0.6268, allocations: 0 / 0.5895 GB, free: 5.016 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03331/0.6601, allocations: 9.286 MB / 0.5985 GB, free: 11.72 MB / 443.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002771/0.6604, allocations: 169.1 kB / 0.5987 GB, free: 11.53 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.319/2.979, allocations: 0 / 0.5987 GB, free: 11.53 MB / 443.1 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