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.001105/0.001105, allocations: 94.52 kB / 16.3 MB, free: 5.527 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.001275/0.001275, allocations: 185 kB / 17.2 MB, free: 5.461 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.247/1.247, allocations: 223.2 MB / 241.1 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1616/0.1616, allocations: 38.09 MB / 330.3 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002717, allocations: 12 kB / 400.1 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08491/0.08519, allocations: 59.17 MB / 459.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005045/0.09028, allocations: 5.165 MB / 464.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.09244, allocations: 1.73 MB / 466.1 MB, free: 404 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002404/0.09269, allocations: 35.75 kB / 466.2 MB, free: 368 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002688/0.09297, allocations: 115.3 kB / 466.3 MB, free: 252 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005642/0.09354, allocations: 326.9 kB / 466.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003259/0.09388, allocations: 167.7 kB / 466.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004969/0.09439, allocations: 419.1 kB / 467.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003803/0.09478, allocations: 321.2 kB / 467.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.09506, allocations: 215.2 kB / 467.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.09536, allocations: 207.1 kB / 467.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.914e-05/0.09541, allocations: 24 kB / 467.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.74e-05/0.09548, allocations: 24 kB / 467.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.09561, allocations: 115.6 kB / 468 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.09573, allocations: 121.5 kB / 468.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004155/0.09615, allocations: 462.8 kB / 468.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09616, allocations: 0 / 468.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.09617, allocations: 0 / 468.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.09618, allocations: 0 / 468.6 MB, free: 13.88 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.001181/0.09737, allocations: 0.7072 MB / 469.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.09741, allocations: 12.03 kB / 469.3 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.006e-05/0.09751, allocations: 78.53 kB / 469.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.047e-05/0.09759, allocations: 55.34 kB / 469.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006847/0.09828, allocations: 426.8 kB / 469.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.347e-05/0.09838, allocations: 66.66 kB / 469.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.231e-05/0.09846, allocations: 47.98 kB / 470 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007232/0.09919, allocations: 0.4931 MB / 470.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.09922, allocations: 0 / 470.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.722e-05/0.09926, allocations: 16 kB / 470.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.09928, allocations: 15.94 kB / 470.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006456/0.09993, allocations: 351.7 kB / 470.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.1022, allocations: 1.98 MB / 472.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004299/0.1026, allocations: 231 kB / 473.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.1026, allocations: 3.953 kB / 473.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.1027, allocations: 42.56 kB / 473.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.1027, allocations: 0 / 473.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001692/0.1044, allocations: 0.8533 MB / 474 MB, free: 8.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/0.1045, allocations: 106.8 kB / 474.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.1048, allocations: 333.5 kB / 474.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.1048, allocations: 29.7 kB / 474.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.105, allocations: 275.5 kB / 474.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.019e-05/0.1051, allocations: 74.89 kB / 474.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.147e-05/0.1051, allocations: 12 kB / 474.8 MB, free: 7.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1052, allocations: 342.8 kB / 475.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.1054, allocations: 88.02 kB / 475.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.1057, allocations: 209.1 kB / 475.4 MB, free: 6.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007401/0.1065, allocations: 315.4 kB / 475.7 MB, free: 6.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.279e-06/0.1065, allocations: 3.953 kB / 475.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008323/0.1074, allocations: 419.3 kB / 476.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.1074, allocations: 4 kB / 476.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.1074, allocations: 7.953 kB / 476.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003052/0.1077, allocations: 80.98 kB / 476.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.108, allocations: 67.91 kB / 476.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001832/0.1098, allocations: 1.757 MB / 478 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.11, allocations: 28.05 kB / 478.1 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.1101, allocations: 16 kB / 478.1 MB, free: 3.777 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.0002249/0.1103, allocations: 199.8 kB / 478.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.726e-05/0.1104, allocations: 35.53 kB / 478.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.38e-05/0.1104, allocations: 39.31 kB / 478.3 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1104, allocations: 3.938 kB / 478.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1105, allocations: 4 kB / 478.4 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1105, allocations: 3.984 kB / 478.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.1116, allocations: 0.7872 MB / 479.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.1116, allocations: 8.031 kB / 479.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.1119, allocations: 51.84 kB / 479.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.465e-05/0.1119, allocations: 20.84 kB / 479.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.112, allocations: 8 kB / 479.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.113, allocations: 1.284 MB / 480.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.113, allocations: 7.984 kB / 480.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1141, allocations: 0.5527 MB / 481.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001366/0.1142, allocations: 116.8 kB / 481.2 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.096e-05/0.1143, allocations: 8 kB / 481.2 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/0.1146, allocations: 12 kB / 481.2 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.1146, allocations: 19.97 kB / 481.2 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1147, allocations: 4 kB / 481.2 MB, free: 356 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003061/0.115, allocations: 235.1 kB / 481.5 MB, free: 124 kB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.115, allocations: 0 / 481.5 MB, free: 124 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007263/0.1157, allocations: 92 kB / 481.6 MB, free: 32 kB / 350.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.001163/0.1169, allocations: 1.288 MB / 482.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007057/0.1176, allocations: 370.8 kB / 483.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1176, allocations: 0 / 483.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003794/0.118, allocations: 222.5 kB / 483.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004993/0.1185, allocations: 101.1 kB / 483.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004716/0.1233, allocations: 5.336 MB / 488.9 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.1238, allocations: 0.8545 MB / 489.7 MB, free: 7.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.124, allocations: 47.27 kB / 489.8 MB, free: 7.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.1242, allocations: 139.4 kB / 489.9 MB, free: 7.449 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1242, allocations: 3.938 kB / 489.9 MB, free: 7.445 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.1454, allocations: 7.749 MB / 497.6 MB, free: 15.93 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.1457, allocations: 219 kB / 497.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/1.81, allocations: 0 / 497.9 MB, free: 15.68 MB / 382.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