Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_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.001053/0.001053, allocations: 90.56 kB / 16.3 MB, free: 5.996 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.001093/0.001093, allocations: 186.9 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.4 MB / 223.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2874/0.2874, allocations: 38.05 MB / 309.7 MB, free: 9.039 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005276/0.0005276, allocations: 16 kB / 376.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1099, allocations: 56.34 MB / 432.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.0061/0.1161, allocations: 4.924 MB / 437.8 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003804/0.1199, allocations: 1.989 MB / 439.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004996/0.1205, allocations: 27.81 kB / 439.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005358/0.121, allocations: 131.3 kB / 440 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001074/0.1221, allocations: 346.8 kB / 440.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.1228, allocations: 183.7 kB / 440.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007785/0.1236, allocations: 427 kB / 440.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000451/0.124, allocations: 317.2 kB / 441.2 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004309/0.1245, allocations: 235.1 kB / 441.5 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000341/0.1248, allocations: 215.1 kB / 441.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.269e-05/0.1249, allocations: 24 kB / 441.7 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001733/0.1251, allocations: 47.98 kB / 441.7 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001313/0.1252, allocations: 119.6 kB / 441.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.1253, allocations: 121.5 kB / 442 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005219/0.1259, allocations: 0.4909 MB / 442.5 MB, free: 13.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1259, allocations: 0 / 442.5 MB, free: 13.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1259, allocations: 4 kB / 442.5 MB, free: 13.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.1259, allocations: 0 / 442.5 MB, free: 13.14 MB / 382.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.001495/0.1274, allocations: 0.7571 MB / 443.2 MB, free: 12.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.602e-05/0.1275, allocations: 8.031 kB / 443.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.372e-05/0.1276, allocations: 74.53 kB / 443.3 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.234e-05/0.1277, allocations: 55.34 kB / 443.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007206/0.1284, allocations: 449.9 kB / 443.8 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.1284, allocations: 33 kB / 443.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.288e-05/0.1285, allocations: 39.91 kB / 443.9 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006646/0.1292, allocations: 465 kB / 444.3 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.1292, allocations: 0 / 444.3 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.1292, allocations: 19.94 kB / 444.4 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.1293, allocations: 8 kB / 444.4 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004362/0.1297, allocations: 274.3 kB / 444.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002251/0.132, allocations: 1.863 MB / 446.5 MB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.1325, allocations: 256.3 kB / 446.7 MB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.1326, allocations: 12.34 kB / 446.8 MB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.1328, allocations: 166.4 kB / 446.9 MB, free: 8.391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.1329, allocations: 0 / 446.9 MB, free: 8.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.001758/0.1346, allocations: 0.9058 MB / 447.8 MB, free: 7.426 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.888e-05/0.1347, allocations: 140.4 kB / 448 MB, free: 7.258 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000475/0.1352, allocations: 401.8 kB / 448.3 MB, free: 6.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.1352, allocations: 29.7 kB / 448.4 MB, free: 6.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000184/0.1354, allocations: 263.6 kB / 448.6 MB, free: 6.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.996e-05/0.1355, allocations: 98.75 kB / 448.7 MB, free: 6.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.583e-05/0.1355, allocations: 8 kB / 448.7 MB, free: 6.453 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1357, allocations: 354.8 kB / 449.1 MB, free: 6.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.1359, allocations: 79.95 kB / 449.2 MB, free: 6.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.1361, allocations: 212.2 kB / 449.4 MB, free: 5.754 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001905/0.1363, allocations: 108 kB / 449.5 MB, free: 5.648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1363, allocations: 0 / 449.5 MB, free: 5.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008027/0.1371, allocations: 429.8 kB / 449.9 MB, free: 5.219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.1371, allocations: 8 kB / 449.9 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.1372, allocations: 8.031 kB / 449.9 MB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004141/0.1376, allocations: 88.78 kB / 450 MB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.1378, allocations: 71.84 kB / 450.1 MB, free: 5.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002314/0.1402, allocations: 1.847 MB / 451.9 MB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.1405, allocations: 27.88 kB / 451.9 MB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.923e-05/0.1405, allocations: 16 kB / 452 MB, free: 3.02 MB / 382.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.000246/0.1408, allocations: 197.8 kB / 452.2 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.47e-05/0.1408, allocations: 39.53 kB / 452.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005875/0.1414, allocations: 297.9 kB / 452.5 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.1414, allocations: 0 / 452.5 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.1414, allocations: 7.938 kB / 452.5 MB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1415, allocations: 3.984 kB / 452.5 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.1425, allocations: 0.7683 MB / 453.3 MB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1425, allocations: 0 / 453.3 MB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002368/0.1428, allocations: 47.91 kB / 453.3 MB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002072/0.143, allocations: 44.81 kB / 453.4 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/0.1431, allocations: 11.98 kB / 453.4 MB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1899/0.333, allocations: 1.445 MB / 454.8 MB, free: 50.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.333, allocations: 0 / 454.8 MB, free: 50.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008126/0.3338, allocations: 0.5116 MB / 455.3 MB, free: 50.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.334, allocations: 141.7 kB / 455.5 MB, free: 50.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.565e-05/0.334, allocations: 10.22 kB / 455.5 MB, free: 50.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.3343, allocations: 16.31 kB / 455.5 MB, free: 50.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.3344, allocations: 19.42 kB / 455.5 MB, free: 50.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3344, allocations: 10.12 kB / 455.5 MB, free: 50.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002611/0.3347, allocations: 278.9 kB / 455.8 MB, free: 50.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3347, allocations: 0 / 455.8 MB, free: 50.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005208/0.3352, allocations: 104 kB / 455.9 MB, free: 50.2 MB / 382.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.001432/0.3366, allocations: 1.475 MB / 457.4 MB, free: 49.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007051/0.3373, allocations: 405.1 kB / 457.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3374, allocations: 0 / 457.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003054/0.3377, allocations: 245.2 kB / 458 MB, free: 49.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005718/0.3383, allocations: 104 kB / 458.1 MB, free: 49.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003806/0.3421, allocations: 5.422 MB / 463.5 MB, free: 45.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.3424, allocations: 0.8703 MB / 464.4 MB, free: 44.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002413/0.3426, allocations: 70.27 kB / 464.5 MB, free: 44.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.3428, allocations: 159.2 kB / 464.6 MB, free: 44.57 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3428, allocations: 0 / 464.6 MB, free: 44.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02287/0.3657, allocations: 9.894 MB / 474.5 MB, free: 43.62 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/0.3659, allocations: 255.7 kB / 474.8 MB, free: 43.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.985/2.351, allocations: 0 / 474.8 MB, free: 43.29 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) Environment - environmentSimulation: