Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.0009455/0.0009455, allocations: 181.1 kB / 16.39 MB, free: 5.762 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.211/1.211, 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.0007847/0.0007845, allocations: 96.17 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1552/0.1552, allocations: 38.06 MB / 357.2 MB, free: 1.879 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002957, allocations: 11.98 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2337, allocations: 56.33 MB / 480.4 MB, free: 9.414 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.3465, allocations: 100.3 MB / 0.5671 GB, free: 2.008 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.3468, allocations: 95.94 kB / 0.5672 GB, free: 1.914 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03168/0.3785, allocations: 13.04 MB / 0.5799 GB, free: 4.723 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3785, allocations: 0 / 0.5799 GB, free: 4.723 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.227e-05/0.3785, allocations: 12 kB / 0.5799 GB, free: 4.711 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001012/0.3795, allocations: 0.7313 MB / 0.5806 GB, free: 3.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3796, allocations: 8.031 kB / 0.5806 GB, free: 3.922 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.68e-05/0.3797, allocations: 82.53 kB / 0.5807 GB, free: 3.832 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.766e-05/0.3798, allocations: 59.3 kB / 0.5808 GB, free: 3.773 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.381, allocations: 0.678 MB / 0.5814 GB, free: 3.047 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.148e-05/0.3811, allocations: 66.69 kB / 0.5815 GB, free: 2.977 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-05/0.3812, allocations: 48 kB / 0.5815 GB, free: 2.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007271/0.3819, allocations: 0.5026 MB / 0.582 GB, free: 2.383 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.382, allocations: 3.938 kB / 0.582 GB, free: 2.379 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/0.382, allocations: 16 kB / 0.5821 GB, free: 2.363 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.382, allocations: 12 kB / 0.5821 GB, free: 2.352 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005895/0.3826, allocations: 347.6 kB / 0.5824 GB, free: 2.012 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.3848, allocations: 1.999 MB / 0.5843 GB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.3852, allocations: 226.6 kB / 0.5846 GB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.832e-05/0.3852, allocations: 4.062 kB / 0.5846 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.3853, allocations: 38.47 kB / 0.5846 GB, free: 15.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.3853, allocations: 0 / 0.5846 GB, free: 15.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.00151/0.3868, allocations: 0.8629 MB / 0.5854 GB, free: 14.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.3868, allocations: 106.8 kB / 0.5855 GB, free: 14.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.3871, allocations: 296.7 kB / 0.5858 GB, free: 14.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.3872, allocations: 29.64 kB / 0.5859 GB, free: 14.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.3873, allocations: 267.6 kB / 0.5861 GB, free: 13.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.521e-05/0.3874, allocations: 78.89 kB / 0.5862 GB, free: 13.87 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.3874, allocations: 8 kB / 0.5862 GB, free: 13.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3875, allocations: 358.7 kB / 0.5865 GB, free: 13.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.3877, allocations: 79.95 kB / 0.5866 GB, free: 13.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/0.3879, allocations: 221 kB / 0.5868 GB, free: 13.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007221/0.3887, allocations: 309.1 kB / 0.5871 GB, free: 12.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.3887, allocations: 3.984 kB / 0.5871 GB, free: 12.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007856/0.3895, allocations: 424.8 kB / 0.5875 GB, free: 12.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3895, allocations: 8 kB / 0.5875 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3895, allocations: 4.406 kB / 0.5875 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003026/0.3898, allocations: 84.73 kB / 0.5876 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.3901, allocations: 63.91 kB / 0.5877 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.3918, allocations: 1.821 MB / 0.5895 GB, free: 10.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.392, allocations: 15.91 kB / 0.5895 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.392, allocations: 20 kB / 0.5895 GB, free: 10.25 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001936/0.3922, allocations: 197.6 kB / 0.5897 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.529e-05/0.3923, allocations: 31.62 kB / 0.5897 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.068e-05/0.3924, allocations: 39.31 kB / 0.5898 GB, free: 9.984 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3924, allocations: 7.953 kB / 0.5898 GB, free: 9.977 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3924, allocations: 4 kB / 0.5898 GB, free: 9.973 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3924, allocations: 0 / 0.5898 GB, free: 9.973 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.3935, allocations: 0.7804 MB / 0.5905 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3935, allocations: 0 / 0.5905 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.3937, allocations: 51.91 kB / 0.5906 GB, free: 9.066 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.045e-05/0.3938, allocations: 20.86 kB / 0.5906 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.3938, allocations: 7.984 kB / 0.5906 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007145/0.3946, allocations: 1.28 MB / 0.5919 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3946, allocations: 4 kB / 0.5919 GB, free: 7.617 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007052/0.3953, allocations: 0.5566 MB / 0.5924 GB, free: 7.016 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.3954, allocations: 128.7 kB / 0.5925 GB, free: 6.871 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/0.3954, allocations: 7.984 kB / 0.5925 GB, free: 6.863 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.3956, allocations: 12 kB / 0.5925 GB, free: 6.852 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.3957, allocations: 19.97 kB / 0.5926 GB, free: 6.832 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.3957, allocations: 11.94 kB / 0.5926 GB, free: 6.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001875/0.3959, allocations: 227.2 kB / 0.5928 GB, free: 6.602 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3959, allocations: 0 / 0.5928 GB, free: 6.602 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004512/0.3964, allocations: 96 kB / 0.5929 GB, free: 6.508 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009886/0.3974, allocations: 1.315 MB / 0.5942 GB, free: 5.141 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006792/0.3981, allocations: 379.3 kB / 0.5945 GB, free: 4.758 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3981, allocations: 4 kB / 0.5945 GB, free: 4.754 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003066/0.3984, allocations: 214.5 kB / 0.5947 GB, free: 4.531 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004768/0.3989, allocations: 94.88 kB / 0.5948 GB, free: 4.438 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004076/0.403, allocations: 5.352 MB / 0.6001 GB, free: 14.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.4033, allocations: 0.8583 MB / 0.6009 GB, free: 14.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.4035, allocations: 51.25 kB / 0.6009 GB, free: 14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.4037, allocations: 139.4 kB / 0.6011 GB, free: 13.86 MB / 442.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4037, allocations: 0 / 0.6011 GB, free: 13.86 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.4239, allocations: 8.188 MB / 0.6091 GB, free: 5.734 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/0.4241, allocations: 220.4 kB / 0.6093 GB, free: 5.488 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.933/2.357, allocations: 4 kB / 0.6093 GB, free: 5.484 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat does not exist to compare? outputFormat=mat