Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.0009233/0.0009291, allocations: 94.94 kB / 16.3 MB, free: 5.609 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.0009827/0.0009829, allocations: 187.9 kB / 17.2 MB, free: 5.539 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.245/1.245, allocations: 223.2 MB / 241.1 MB, free: 408 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1608/0.1608, allocations: 38.1 MB / 330.3 MB, free: 8.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.0002768, allocations: 8 kB / 400.1 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09486, allocations: 59.18 MB / 459.2 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005157/0.1001, allocations: 4.934 MB / 464.2 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002725/0.1028, allocations: 2.012 MB / 466.2 MB, free: 392 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.1031, allocations: 27.81 kB / 466.2 MB, free: 364 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003571/0.1034, allocations: 143.2 kB / 466.3 MB, free: 220 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006638/0.1041, allocations: 338.8 kB / 466.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004319/0.1046, allocations: 198.7 kB / 466.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005695/0.1051, allocations: 427.1 kB / 467.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003796/0.1055, allocations: 313.4 kB / 467.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003127/0.1058, allocations: 231.1 kB / 467.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.1061, allocations: 219.1 kB / 468 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.446e-05/0.1062, allocations: 20 kB / 468.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.1063, allocations: 51.94 kB / 468.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.1065, allocations: 115.6 kB / 468.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1066, allocations: 125.3 kB / 468.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004312/0.107, allocations: 0.4987 MB / 468.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.107, allocations: 0 / 468.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.107, allocations: 0 / 468.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1071, allocations: 0 / 468.8 MB, free: 13.71 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001264/0.1083, allocations: 0.7571 MB / 469.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1084, allocations: 8.031 kB / 469.6 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.45e-05/0.1085, allocations: 74.53 kB / 469.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.873e-05/0.1086, allocations: 55.34 kB / 469.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007084/0.1093, allocations: 453.8 kB / 470.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.101e-05/0.1093, allocations: 29 kB / 470.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/0.1094, allocations: 39.95 kB / 470.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000612/0.11, allocations: 449.1 kB / 470.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.11, allocations: 4 kB / 470.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.1101, allocations: 16 kB / 470.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.1101, allocations: 8 kB / 470.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000415/0.1105, allocations: 278.3 kB / 471 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.1125, allocations: 1.874 MB / 472.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004488/0.1129, allocations: 248.2 kB / 473.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.113, allocations: 4.172 kB / 473.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002307/0.1132, allocations: 170.3 kB / 473.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.1132, allocations: 4 kB / 473.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001523/0.1147, allocations: 0.8989 MB / 474.2 MB, free: 8.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.52e-05/0.1148, allocations: 136.5 kB / 474.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/0.1152, allocations: 409.8 kB / 474.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.1153, allocations: 33.95 kB / 474.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.1154, allocations: 259.7 kB / 475 MB, free: 7.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.287e-05/0.1155, allocations: 86.72 kB / 475.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.655e-05/0.1155, allocations: 8 kB / 475.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1157, allocations: 350.8 kB / 475.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.1158, allocations: 83.92 kB / 475.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.116, allocations: 212.2 kB / 475.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.1162, allocations: 116.8 kB / 475.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1162, allocations: 4 kB / 475.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007839/0.117, allocations: 429.6 kB / 476.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.117, allocations: 8 kB / 476.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.117, allocations: 4 kB / 476.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003877/0.1174, allocations: 92.77 kB / 476.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.1177, allocations: 71.78 kB / 476.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.1197, allocations: 1.847 MB / 478.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.1199, allocations: 19.94 kB / 478.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.815e-05/0.1199, allocations: 24.05 kB / 478.3 MB, free: 3.605 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.1201, allocations: 193.7 kB / 478.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.068e-05/0.1202, allocations: 43.44 kB / 478.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005227/0.1207, allocations: 294 kB / 478.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1207, allocations: 4 kB / 478.8 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.1208, allocations: 4 kB / 478.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1208, allocations: 4 kB / 478.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009692/0.1217, allocations: 0.7648 MB / 479.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1218, allocations: 0 / 479.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.122, allocations: 39.97 kB / 479.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001866/0.1222, allocations: 56.69 kB / 479.7 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.1222, allocations: 8 kB / 479.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.1233, allocations: 1.449 MB / 481.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1233, allocations: 12.09 kB / 481.2 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000662/0.124, allocations: 0.5182 MB / 481.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.1241, allocations: 136.7 kB / 481.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.049e-05/0.1242, allocations: 8 kB / 481.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.1244, allocations: 15.98 kB / 481.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.1245, allocations: 15.97 kB / 481.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.1245, allocations: 12 kB / 481.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.1248, allocations: 275.1 kB / 482.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1248, allocations: 0 / 482.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004717/0.1253, allocations: 112 kB / 482.2 MB, free: 15.4 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001654/0.1269, allocations: 1.492 MB / 483.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007407/0.1277, allocations: 403.1 kB / 484.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1277, allocations: 0 / 484.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003491/0.128, allocations: 238.5 kB / 484.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.1286, allocations: 120.9 kB / 484.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004598/0.1332, allocations: 5.421 MB / 489.9 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.1336, allocations: 0.8701 MB / 490.8 MB, free: 6.797 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002337/0.1339, allocations: 59.36 kB / 490.8 MB, free: 6.734 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.1341, allocations: 163.4 kB / 491 MB, free: 6.574 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1341, allocations: 0 / 491 MB, free: 6.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.1564, allocations: 9.906 MB / 0.4892 GB, free: 12.91 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003362/0.1568, allocations: 266 kB / 0.4894 GB, free: 12.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/1.971, allocations: 0 / 0.4894 GB, free: 12.55 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat does not exist to compare? outputFormat=mat