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.000872/0.0008721, allocations: 92.45 kB / 16.65 MB, free: 6.586 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.001043/0.001043, allocations: 184.4 kB / 17.57 MB, free: 6.203 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.205/1.205, allocations: 223.3 MB / 241.6 MB, free: 14.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.16/0.16, allocations: 38.08 MB / 330.8 MB, free: 8.621 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.0002728, allocations: 8 kB / 400.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09188, allocations: 59.17 MB / 460 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.00575/0.09768, allocations: 5.386 MB / 465.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003212/0.1009, allocations: 2.143 MB / 467.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003476/0.1013, allocations: 27.81 kB / 467.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004526/0.1018, allocations: 127.2 kB / 467.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007058/0.1025, allocations: 322.3 kB / 468 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004459/0.1029, allocations: 191.7 kB / 468.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008742/0.1038, allocations: 0.8293 MB / 469 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004389/0.1043, allocations: 349.4 kB / 469.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003612/0.1046, allocations: 238.9 kB / 469.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000383/0.105, allocations: 278.7 kB / 469.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.547e-05/0.1051, allocations: 24 kB / 469.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.1053, allocations: 71.98 kB / 469.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.1054, allocations: 119.5 kB / 470.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.1056, allocations: 268.3 kB / 470.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005777/0.1062, allocations: 0.6072 MB / 470.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1062, allocations: 0 / 470.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1062, allocations: 0 / 470.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.1063, allocations: 0 / 470.9 MB, free: 11.97 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.001353/0.1076, allocations: 0.7611 MB / 471.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1077, allocations: 8.031 kB / 471.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.885e-05/0.1078, allocations: 74.72 kB / 471.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.589e-05/0.1079, allocations: 60.28 kB / 471.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006271/0.1085, allocations: 465.9 kB / 472.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.1085, allocations: 25 kB / 472.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.906e-05/0.1086, allocations: 43.91 kB / 472.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006156/0.1092, allocations: 461.1 kB / 472.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.1093, allocations: 0 / 472.8 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.763e-05/0.1093, allocations: 16 kB / 472.8 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.1093, allocations: 12 kB / 472.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004423/0.1098, allocations: 278.3 kB / 473.1 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.1117, allocations: 1.87 MB / 475 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004561/0.1122, allocations: 239.7 kB / 475.2 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.1124, allocations: 101 kB / 475.3 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.1124, allocations: 4 kB / 475.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.1127, allocations: 177.6 kB / 475.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.635e-06/0.1127, allocations: 0 / 475.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001564/0.1142, allocations: 0.9121 MB / 476.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.543e-05/0.1143, allocations: 132.5 kB / 476.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.1147, allocations: 405.8 kB / 476.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.1148, allocations: 29.7 kB / 476.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.1149, allocations: 267.8 kB / 477.2 MB, free: 5.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.692e-05/0.115, allocations: 90.66 kB / 477.3 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.91e-05/0.1151, allocations: 37.7 kB / 477.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1152, allocations: 354.8 kB / 477.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.1153, allocations: 91.91 kB / 477.8 MB, free: 4.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002241/0.1156, allocations: 216.2 kB / 478 MB, free: 4.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.116, allocations: 311.9 kB / 478.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.116, allocations: 3.938 kB / 478.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007805/0.1168, allocations: 421.5 kB / 478.7 MB, free: 3.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1168, allocations: 8 kB / 478.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.1168, allocations: 4 kB / 478.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004041/0.1172, allocations: 101.1 kB / 478.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.1174, allocations: 71.84 kB / 478.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.1197, allocations: 1.818 MB / 480.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.12, allocations: 19.98 kB / 480.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.12, allocations: 16 kB / 480.7 MB, free: 1.469 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002403/0.1203, allocations: 201.6 kB / 480.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.463e-05/0.1203, allocations: 39.53 kB / 481 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005841/0.1209, allocations: 294 kB / 481.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1209, allocations: 7.984 kB / 481.3 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.121, allocations: 3.938 kB / 481.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.121, allocations: 0 / 481.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.122, allocations: 0.7687 MB / 482 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.122, allocations: 7.938 kB / 482 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.1222, allocations: 43.98 kB / 482.1 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.1225, allocations: 56.8 kB / 482.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.1225, allocations: 3.938 kB / 482.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.1236, allocations: 1.437 MB / 483.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1237, allocations: 3.938 kB / 483.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006789/0.1243, allocations: 0.4953 MB / 484.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.1245, allocations: 140.5 kB / 484.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.707e-05/0.1245, allocations: 11.98 kB / 484.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.1248, allocations: 12 kB / 484.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.431e-05/0.1248, allocations: 19.97 kB / 484.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.1249, allocations: 11.98 kB / 484.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002866/0.1251, allocations: 287.1 kB / 484.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1252, allocations: 0 / 484.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006647/0.1258, allocations: 100 kB / 484.6 MB, free: 13.29 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001734/0.1276, allocations: 1.322 MB / 486 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008013/0.1284, allocations: 399.2 kB / 486.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1284, allocations: 0 / 486.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003566/0.1288, allocations: 250.3 kB / 486.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007062/0.1295, allocations: 125.7 kB / 486.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/0.1349, allocations: 4.342 MB / 491.1 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.1353, allocations: 0.8542 MB / 491.9 MB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002546/0.1356, allocations: 71.34 kB / 492 MB, free: 5.797 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.1358, allocations: 163.4 kB / 492.2 MB, free: 5.637 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1358, allocations: 0 / 492.2 MB, free: 5.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3462/0.482, allocations: 10.03 MB / 0.4904 GB, free: 11.86 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002711/0.4823, allocations: 279.9 kB / 0.4907 GB, free: 11.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.719, allocations: 0 / 0.4907 GB, free: 11.48 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/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)