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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001093, allocations: 87.14 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 182.8 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.2 MB / 241.2 MB, free: 352 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1774/0.1774, allocations: 38.1 MB / 330.4 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003912/0.0003912, allocations: 11.94 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1477, allocations: 59.17 MB / 459.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.009067/0.1568, allocations: 5.402 MB / 464.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004227/0.1611, allocations: 1.73 MB / 466.5 MB, free: 164 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006892/0.1618, allocations: 35.75 kB / 466.5 MB, free: 128 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005701/0.1624, allocations: 127 kB / 466.6 MB, free: 0 / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.1638, allocations: 338.1 kB / 467 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006945/0.1645, allocations: 159.8 kB / 467.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.1658, allocations: 0.7317 MB / 467.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006444/0.1665, allocations: 333.1 kB / 468.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004811/0.167, allocations: 231 kB / 468.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005239/0.1675, allocations: 267 kB / 468.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.872e-05/0.1676, allocations: 24 kB / 468.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.987e-05/0.1677, allocations: 24 kB / 468.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.1679, allocations: 127.6 kB / 468.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.168, allocations: 121.5 kB / 468.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006042/0.1687, allocations: 466.6 kB / 469.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1687, allocations: 0 / 469.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1687, allocations: 3.938 kB / 469.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.1687, allocations: 0 / 469.4 MB, free: 13.2 MB / 350.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.001614/0.1703, allocations: 0.6956 MB / 470.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1704, allocations: 12.03 kB / 470.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.1705, allocations: 82.52 kB / 470.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.1707, allocations: 55.34 kB / 470.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009197/0.1716, allocations: 430.8 kB / 470.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.1717, allocations: 66.66 kB / 470.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.1719, allocations: 44 kB / 470.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1731, allocations: 0.5009 MB / 471.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/0.1732, allocations: 3.938 kB / 471.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.1732, allocations: 16 kB / 471.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.1733, allocations: 12 kB / 471.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.1743, allocations: 347.7 kB / 471.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003387/0.1777, allocations: 1.984 MB / 473.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006684/0.1784, allocations: 231.6 kB / 473.9 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003087/0.1787, allocations: 98.55 kB / 474 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.1788, allocations: 4 kB / 474 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.1788, allocations: 34.56 kB / 474 MB, free: 8.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.464e-06/0.1788, allocations: 0 / 474 MB, free: 8.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.002414/0.1812, allocations: 0.8575 MB / 474.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.1813, allocations: 106.8 kB / 475 MB, free: 7.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005316/0.1819, allocations: 329.6 kB / 475.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.1819, allocations: 29.64 kB / 475.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.1822, allocations: 275.5 kB / 475.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.1823, allocations: 82.97 kB / 475.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.082e-05/0.1823, allocations: 4 kB / 475.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.1825, allocations: 346.8 kB / 476 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003204/0.1829, allocations: 83.95 kB / 476.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004421/0.1833, allocations: 221 kB / 476.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.1845, allocations: 319.1 kB / 476.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1845, allocations: 0 / 476.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001313/0.1858, allocations: 411.5 kB / 477 MB, free: 5.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.1859, allocations: 12.02 kB / 477 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.1859, allocations: 8 kB / 477 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004449/0.1863, allocations: 80.73 kB / 477.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/0.1868, allocations: 67.91 kB / 477.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002753/0.1895, allocations: 1.747 MB / 478.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003719/0.1899, allocations: 23.92 kB / 478.9 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.154e-05/0.19, allocations: 16 kB / 479 MB, free: 3 MB / 350.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0003813/0.1904, allocations: 193.6 kB / 479.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.1905, allocations: 35.53 kB / 479.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.312e-05/0.1906, allocations: 39.31 kB / 479.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1906, allocations: 8 kB / 479.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1907, allocations: 0 / 479.2 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1907, allocations: 3.984 kB / 479.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.1925, allocations: 0.7913 MB / 480 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.1925, allocations: 3.938 kB / 480 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.193, allocations: 47.97 kB / 480.1 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001219/0.1931, allocations: 20.84 kB / 480.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.1931, allocations: 4 kB / 480.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/0.1944, allocations: 1.292 MB / 481.4 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1944, allocations: 3.953 kB / 481.4 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.1956, allocations: 0.5204 MB / 481.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/0.1959, allocations: 120.8 kB / 482 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.915e-05/0.1959, allocations: 7.953 kB / 482 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003331/0.1963, allocations: 8 kB / 482.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.943e-05/0.1964, allocations: 19.97 kB / 482.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.1964, allocations: 8 kB / 482.1 MB, free: 15.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003701/0.1968, allocations: 231.2 kB / 482.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1968, allocations: 4 kB / 482.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009373/0.1978, allocations: 84 kB / 482.4 MB, free: 15.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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.001504/0.1993, allocations: 1.049 MB / 483.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.2004, allocations: 379.3 kB / 483.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2005, allocations: 4.188 kB / 483.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005328/0.201, allocations: 218.5 kB / 484 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.2021, allocations: 89.56 kB / 484.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005881/0.208, allocations: 2.496 MB / 486.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.2086, allocations: 0.8389 MB / 487.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.209, allocations: 55.25 kB / 487.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002652/0.2093, allocations: 135.4 kB / 487.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2093, allocations: 0 / 487.6 MB, free: 9.859 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.2355, allocations: 7.767 MB / 495.4 MB, free: 2.324 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.2357, allocations: 226.8 kB / 495.6 MB, free: 2.082 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.095, allocations: 0 / 495.6 MB, free: 2.082 MB / 366.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) Environment - environmentSimulation: 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