Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.001234/0.001234, allocations: 106.2 kB / 17.06 MB, free: 6.016 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.001527/0.001527, allocations: 195 kB / 18 MB, free: 5.094 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.357/1.357, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1796/0.1796, allocations: 37.98 MB / 309.2 MB, free: 5.957 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.001361/0.001361, allocations: 71.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09885/0.1002, allocations: 55.23 MB / 486.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.00771/0.108, allocations: 5.683 MB / 492.3 MB, free: 3.141 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003408/0.1114, allocations: 2.089 MB / 494.4 MB, free: 1.043 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004776/0.1119, allocations: 27.81 kB / 494.4 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007432/0.1127, allocations: 166.8 kB / 494.6 MB, free: 0.8516 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001308/0.1141, allocations: 417.6 kB / 495 MB, free: 452 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006867/0.1148, allocations: 236 kB / 495.2 MB, free: 216 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.1161, allocations: 0.8369 MB / 496 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007046/0.1168, allocations: 496.8 kB / 496.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005908/0.1174, allocations: 358.6 kB / 496.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005699/0.118, allocations: 342.6 kB / 497.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.1181, allocations: 52 kB / 497.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002954/0.1184, allocations: 104 kB / 497.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.1186, allocations: 183.5 kB / 497.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004151/0.1191, allocations: 302.5 kB / 497.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009527/0.12, allocations: 0.7475 MB / 498.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.12, allocations: 0 / 498.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.12, allocations: 0 / 498.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.451e-05/0.1201, allocations: 4 kB / 498.6 MB, free: 12.81 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001991/0.1221, allocations: 0.8863 MB / 499.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.1221, allocations: 19.83 kB / 499.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.1223, allocations: 82.7 kB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.1224, allocations: 60.19 kB / 499.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009598/0.1234, allocations: 0.5175 MB / 0.4884 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.1234, allocations: 36.94 kB / 0.4885 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.1236, allocations: 51.88 kB / 0.4885 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008733/0.1244, allocations: 0.5134 MB / 0.489 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.1245, allocations: 4 kB / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.298e-05/0.1245, allocations: 16 kB / 0.489 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.429e-05/0.1246, allocations: 20.98 kB / 0.4891 GB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005389/0.1252, allocations: 335.7 kB / 0.4894 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.1279, allocations: 2.062 MB / 0.4914 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004221/0.1283, allocations: 231.6 kB / 0.4916 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.1284, allocations: 78.69 kB / 0.4917 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.1285, allocations: 12.2 kB / 0.4917 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.1287, allocations: 173.5 kB / 0.4919 GB, free: 7.422 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.512e-06/0.1287, allocations: 4 kB / 0.4919 GB, free: 7.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001694/0.1304, allocations: 0.9172 MB / 0.4928 GB, free: 6.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/0.1305, allocations: 132.4 kB / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/0.131, allocations: 433.8 kB / 0.4933 GB, free: 5.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.1311, allocations: 33.7 kB / 0.4933 GB, free: 5.809 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.1313, allocations: 295.6 kB / 0.4936 GB, free: 5.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.906e-05/0.1314, allocations: 82.8 kB / 0.4937 GB, free: 5.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.1315, allocations: 82.09 kB / 0.4938 GB, free: 5.348 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1317, allocations: 354.7 kB / 0.4941 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.1318, allocations: 88.83 kB / 0.4942 GB, free: 4.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/0.1321, allocations: 225.4 kB / 0.4944 GB, free: 4.625 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004959/0.1326, allocations: 324 kB / 0.4947 GB, free: 4.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1326, allocations: 0 / 0.4947 GB, free: 4.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000907/0.1336, allocations: 437.3 kB / 0.4951 GB, free: 3.812 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.1336, allocations: 12.55 kB / 0.4951 GB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.1336, allocations: 8 kB / 0.4952 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004246/0.134, allocations: 96.77 kB / 0.4952 GB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002609/0.1343, allocations: 75.84 kB / 0.4953 GB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/0.1365, allocations: 1.825 MB / 0.4971 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.1368, allocations: 23.98 kB / 0.4971 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.1369, allocations: 12 kB / 0.4971 GB, free: 1.617 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002337/0.1371, allocations: 213.6 kB / 0.4973 GB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.792e-05/0.1372, allocations: 47.38 kB / 0.4974 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.1373, allocations: 51.88 kB / 0.4974 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1373, allocations: 4 kB / 0.4974 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1373, allocations: 4 kB / 0.4974 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1373, allocations: 3.984 kB / 0.4974 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.1384, allocations: 0.7683 MB / 0.4982 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.1385, allocations: 0 / 0.4982 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.1387, allocations: 43.98 kB / 0.4982 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002138/0.1389, allocations: 60.73 kB / 0.4983 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.139, allocations: 8 kB / 0.4983 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/0.1402, allocations: 1.547 MB / 0.4998 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.1403, allocations: 7.969 kB / 0.4998 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00068/0.1409, allocations: 485.2 kB / 0.5003 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.1411, allocations: 132.6 kB / 0.5004 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.574e-05/0.1412, allocations: 4 kB / 0.5004 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.1414, allocations: 12 kB / 0.5004 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.1415, allocations: 27.91 kB / 0.5005 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.1415, allocations: 7.984 kB / 0.5005 GB, free: 13.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000327/0.1418, allocations: 295.1 kB / 0.5007 GB, free: 13.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1418, allocations: 4 kB / 0.5007 GB, free: 13.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005225/0.1424, allocations: 120 kB / 0.5009 GB, free: 13.55 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.001803/0.1442, allocations: 1.29 MB / 0.5021 GB, free: 12.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008384/0.145, allocations: 387.4 kB / 0.5025 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.145, allocations: 3.938 kB / 0.5025 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.1454, allocations: 246.5 kB / 0.5027 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007633/0.1462, allocations: 137.9 kB / 0.5029 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005762/0.152, allocations: 4.225 MB / 0.507 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.1525, allocations: 0.8815 MB / 0.5078 GB, free: 6.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002397/0.1527, allocations: 60.23 kB / 0.5079 GB, free: 6.035 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.153, allocations: 175.4 kB / 0.5081 GB, free: 5.863 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.153, allocations: 0 / 0.5081 GB, free: 5.863 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03872/0.1917, allocations: 11.66 MB / 0.5195 GB, free: 10.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.24, allocations: 3.984 kB / 0.5195 GB, free: 10.09 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)