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.001153/0.001153, allocations: 176.4 kB / 8.348 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.688/1.688, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.0009263/0.0009262, allocations: 78.84 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.1775/0.1775, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.743e-05/1.746e-05, allocations: 0 / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1144, allocations: 56.33 MB / 467 MB, free: 6.465 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4018/0.5162, allocations: 99.52 MB / 0.5532 GB, free: 11.26 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.5166, allocations: 87.95 kB / 0.5533 GB, free: 11.17 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03453/0.5511, allocations: 12.89 MB / 0.5659 GB, free: 14.15 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5512, allocations: 4 kB / 0.5659 GB, free: 14.14 MB / 411.1 MB Notification: Performance of Transformations before backend: time 3.178e-05/0.5512, allocations: 16 kB / 0.5659 GB, free: 14.13 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001181/0.5524, allocations: 0.6806 MB / 0.5666 GB, free: 13.4 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.5524, allocations: 12.03 kB / 0.5666 GB, free: 13.39 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.5526, allocations: 55.3 kB / 0.5667 GB, free: 13.33 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/0.554, allocations: 0.6705 MB / 0.5673 GB, free: 12.62 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.771e-05/0.5541, allocations: 47.02 kB / 0.5674 GB, free: 12.57 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.571e-05/0.5541, allocations: 28 kB / 0.5674 GB, free: 12.54 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005043/0.5547, allocations: 274.5 kB / 0.5676 GB, free: 12.27 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006661/0.5553, allocations: 435.7 kB / 0.5681 GB, free: 11.81 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.5554, allocations: 11.92 kB / 0.5681 GB, free: 11.8 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.5554, allocations: 0.75 kB / 0.5681 GB, free: 11.8 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.211e-05/0.5554, allocations: 12 kB / 0.5681 GB, free: 11.79 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.5577, allocations: 1.904 MB / 0.5699 GB, free: 9.773 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.558, allocations: 183.8 kB / 0.5701 GB, free: 9.566 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.5582, allocations: 102.8 kB / 0.5702 GB, free: 9.457 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.5582, allocations: 0 / 0.5702 GB, free: 9.457 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.5582, allocations: 42.47 kB / 0.5703 GB, free: 9.406 MB / 411.1 MB Notification: Performance of pre-optimization done (n=20): time 1.243e-06/0.5582, allocations: 0 / 0.5703 GB, free: 9.406 MB / 411.1 MB Notification: Performance of matching and sorting (n=22): time 0.001188/0.5594, allocations: 0.6963 MB / 0.5709 GB, free: 8.648 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.5595, allocations: 102.8 kB / 0.571 GB, free: 8.523 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/0.5598, allocations: 253 kB / 0.5713 GB, free: 8.273 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.5598, allocations: 29.77 kB / 0.5713 GB, free: 8.238 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.56, allocations: 275.4 kB / 0.5716 GB, free: 7.961 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.15e-05/0.5601, allocations: 70.91 kB / 0.5716 GB, free: 7.891 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/0.5601, allocations: 0 / 0.5716 GB, free: 7.891 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.5603, allocations: 346.8 kB / 0.572 GB, free: 7.543 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.5604, allocations: 64 kB / 0.572 GB, free: 7.48 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.5606, allocations: 193.3 kB / 0.5722 GB, free: 7.23 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006141/0.5612, allocations: 269.3 kB / 0.5725 GB, free: 6.949 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5612, allocations: 0 / 0.5725 GB, free: 6.949 MB / 411.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006532/0.5619, allocations: 353.3 kB / 0.5728 GB, free: 6.598 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.5619, allocations: 8 kB / 0.5728 GB, free: 6.59 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.5619, allocations: 4 kB / 0.5728 GB, free: 6.586 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002986/0.5622, allocations: 80.78 kB / 0.5729 GB, free: 6.504 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.5625, allocations: 71.84 kB / 0.573 GB, free: 6.434 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.5644, allocations: 1.705 MB / 0.5746 GB, free: 4.613 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.5646, allocations: 19.86 kB / 0.5746 GB, free: 4.594 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.5646, allocations: 15.94 kB / 0.5747 GB, free: 4.578 MB / 411.1 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.000146/0.5648, allocations: 129.8 kB / 0.5748 GB, free: 4.445 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003563/0.5651, allocations: 198.1 kB / 0.575 GB, free: 4.242 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.5652, allocations: 35.61 kB / 0.575 GB, free: 4.207 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.495e-05/0.5653, allocations: 38.94 kB / 0.575 GB, free: 4.168 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.5653, allocations: 11.89 kB / 0.5751 GB, free: 4.156 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5653, allocations: 4 kB / 0.5751 GB, free: 4.152 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5653, allocations: 0 / 0.5751 GB, free: 4.152 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000962/0.5663, allocations: 0.6678 MB / 0.5757 GB, free: 3.422 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.5663, allocations: 11.89 kB / 0.5757 GB, free: 3.41 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.5666, allocations: 43.97 kB / 0.5758 GB, free: 3.367 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.588e-05/0.5667, allocations: 24.84 kB / 0.5758 GB, free: 3.34 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.5667, allocations: 4.062 kB / 0.5758 GB, free: 3.336 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008587/0.5675, allocations: 1.237 MB / 0.577 GB, free: 1.988 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5676, allocations: 0 / 0.577 GB, free: 1.988 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005434/0.5681, allocations: 498.1 kB / 0.5775 GB, free: 1.457 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.5682, allocations: 120.8 kB / 0.5776 GB, free: 1.32 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.5683, allocations: 4 kB / 0.5776 GB, free: 1.316 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.5685, allocations: 11.95 kB / 0.5776 GB, free: 1.305 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.154e-05/0.5686, allocations: 15.97 kB / 0.5776 GB, free: 1.289 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/0.5686, allocations: 8 kB / 0.5776 GB, free: 1.281 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001817/0.5688, allocations: 184.6 kB / 0.5778 GB, free: 1.102 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5688, allocations: 0 / 0.5778 GB, free: 1.102 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0005247/0.5693, allocations: 84 kB / 0.5779 GB, free: 1.02 MB / 411.1 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.001008/0.5703, allocations: 1.252 MB / 0.5791 GB, free: 15.72 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0005912/0.5709, allocations: 342.1 kB / 0.5794 GB, free: 15.38 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5709, allocations: 4 kB / 0.5794 GB, free: 15.37 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002511/0.5712, allocations: 185.8 kB / 0.5796 GB, free: 15.18 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005304/0.5717, allocations: 79.09 kB / 0.5797 GB, free: 15.11 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.5733, allocations: 0.7606 MB / 0.5804 GB, free: 14.29 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.5738, allocations: 0.8581 MB / 0.5813 GB, free: 13.41 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.000182/0.574, allocations: 39.27 kB / 0.5813 GB, free: 13.38 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.5742, allocations: 139.4 kB / 0.5814 GB, free: 13.24 MB / 427.1 MB Notification: Performance of SimCode: time 2.8e-07/0.5742, allocations: 0 / 0.5814 GB, free: 13.24 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/0.602, allocations: 6.812 MB / 0.5881 GB, free: 6.438 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.6022, allocations: 147.5 kB / 0.5882 GB, free: 6.242 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/2.694, allocations: 0 / 0.5882 GB, free: 6.242 MB / 427.1 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