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.002045/0.002045, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.75/1.75, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001018/0.001018, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1746/0.1746, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.469e-05/3.472e-05, allocations: 0 / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1286, allocations: 56.32 MB / 474.2 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5055/0.6342, allocations: 100.2 MB / 0.5609 GB, free: 2.012 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.6345, allocations: 96 kB / 0.561 GB, free: 1.965 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03535/0.6699, allocations: 13.03 MB / 0.5737 GB, free: 6.879 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6699, allocations: 4.375 kB / 0.5737 GB, free: 6.875 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.786e-05/0.67, allocations: 15.94 kB / 0.5737 GB, free: 6.859 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001505/0.6715, allocations: 0.6776 MB / 0.5744 GB, free: 6.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.6716, allocations: 12.03 kB / 0.5744 GB, free: 6.148 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001799/0.6718, allocations: 77.78 kB / 0.5745 GB, free: 6.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.6719, allocations: 59.3 kB / 0.5745 GB, free: 6.031 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.6736, allocations: 0.665 MB / 0.5752 GB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.6738, allocations: 66.69 kB / 0.5752 GB, free: 5.391 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.805e-05/0.6739, allocations: 46.69 kB / 0.5753 GB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008634/0.6747, allocations: 496.4 kB / 0.5757 GB, free: 4.969 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.778e-05/0.6748, allocations: 0 / 0.5757 GB, free: 4.969 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.525e-05/0.6748, allocations: 20.12 kB / 0.5758 GB, free: 4.961 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.6749, allocations: 8 kB / 0.5758 GB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005785/0.6754, allocations: 316.7 kB / 0.5761 GB, free: 4.742 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002686/0.6781, allocations: 2.004 MB / 0.578 GB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.6785, allocations: 194.6 kB / 0.5782 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.6786, allocations: 89.69 kB / 0.5783 GB, free: 2.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.6787, allocations: 4 kB / 0.5783 GB, free: 2.676 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.6787, allocations: 41.38 kB / 0.5783 GB, free: 2.629 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 1.874e-06/0.6787, allocations: 0 / 0.5783 GB, free: 2.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001325/0.68, allocations: 0.749 MB / 0.5791 GB, free: 1.914 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.6801, allocations: 102.8 kB / 0.5792 GB, free: 1.789 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003173/0.6804, allocations: 286.6 kB / 0.5794 GB, free: 1.555 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.6805, allocations: 32.77 kB / 0.5795 GB, free: 1.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.6807, allocations: 271.7 kB / 0.5797 GB, free: 1.301 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.208e-05/0.6808, allocations: 80.7 kB / 0.5798 GB, free: 1.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.319e-05/0.6808, allocations: 6.562 kB / 0.5798 GB, free: 1.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.6809, allocations: 340.7 kB / 0.5801 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.6811, allocations: 77.33 kB / 0.5802 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.6813, allocations: 205.5 kB / 0.5804 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006544/0.682, allocations: 281.3 kB / 0.5807 GB, free: 384 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.682, allocations: 0 / 0.5807 GB, free: 384 kB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007489/0.6827, allocations: 396.2 kB / 0.5811 GB, free: 56 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.6828, allocations: 8.594 kB / 0.5811 GB, free: 48 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.6828, allocations: 4 kB / 0.5811 GB, free: 44 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003631/0.6832, allocations: 85 kB / 0.5812 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.6834, allocations: 67.89 kB / 0.5812 GB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002104/0.6856, allocations: 1.781 MB / 0.583 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.6858, allocations: 23.7 kB / 0.583 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.6859, allocations: 15.5 kB / 0.583 GB, free: 14.17 MB / 394.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 () * 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.0001608/0.686, allocations: 132 kB / 0.5831 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.67e-05/0.6861, allocations: 31.62 kB / 0.5832 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.513e-05/0.6862, allocations: 40.02 kB / 0.5832 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.6862, allocations: 11.95 kB / 0.5832 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.6862, allocations: 7.938 kB / 0.5832 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.6863, allocations: 0 / 0.5832 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.6873, allocations: 0.7547 MB / 0.5839 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.6873, allocations: 0 / 0.5839 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.6876, allocations: 55.56 kB / 0.584 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.601e-05/0.6877, allocations: 20.48 kB / 0.584 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.6877, allocations: 7.688 kB / 0.584 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008986/0.6886, allocations: 1.275 MB / 0.5853 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.6887, allocations: 3.984 kB / 0.5853 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005737/0.6892, allocations: 0.5134 MB / 0.5858 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.6894, allocations: 119.8 kB / 0.5859 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.845e-05/0.6894, allocations: 3.625 kB / 0.5859 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.6896, allocations: 15.67 kB / 0.5859 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.6897, allocations: 19.73 kB / 0.5859 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.6897, allocations: 4 kB / 0.5859 GB, free: 11.21 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002512/0.69, allocations: 224.8 kB / 0.5861 GB, free: 11.03 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.69, allocations: 0 / 0.5861 GB, free: 11.03 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005202/0.6905, allocations: 95.06 kB / 0.5862 GB, free: 10.94 MB / 394.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 () * 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.001096/0.6916, allocations: 1.277 MB / 0.5875 GB, free: 9.703 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006616/0.6923, allocations: 355.2 kB / 0.5878 GB, free: 9.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.6923, allocations: 3.938 kB / 0.5878 GB, free: 9.406 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.6927, allocations: 200.1 kB / 0.588 GB, free: 9.223 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005587/0.6932, allocations: 87.16 kB / 0.5881 GB, free: 9.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.6949, allocations: 0.7891 MB / 0.5889 GB, free: 8.402 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.6954, allocations: 0.8564 MB / 0.5897 GB, free: 7.531 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002245/0.6957, allocations: 51.25 kB / 0.5898 GB, free: 7.484 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.6959, allocations: 138.7 kB / 0.5899 GB, free: 7.441 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6959, allocations: 0 / 0.5899 GB, free: 7.441 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02582/0.7217, allocations: 8.168 MB / 0.5979 GB, free: 15.32 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.722, allocations: 194.9 kB / 0.5981 GB, free: 15.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.372/3.094, allocations: 0 / 0.5981 GB, free: 15.09 MB / 410.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