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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001934/0.001934, allocations: 185.4 kB / 18.68 MB, free: 4.434 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.361/1.361, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1812/0.1812, allocations: 37.98 MB / 309.9 MB, free: 5.965 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.001297/0.001297, allocations: 67.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09944/0.1008, allocations: 55.24 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007104/0.1079, allocations: 5.695 MB / 493.5 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003152/0.1111, allocations: 2.088 MB / 495.6 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.1113, allocations: 19.88 kB / 495.6 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004432/0.1118, allocations: 166.8 kB / 495.7 MB, free: 360 kB / 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.0008497/0.1127, allocations: 413.7 kB / 496.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004839/0.1132, allocations: 240 kB / 496.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008696/0.1141, allocations: 0.8407 MB / 497.2 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005384/0.1146, allocations: 496.7 kB / 497.7 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004334/0.1151, allocations: 358.6 kB / 498.1 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000407/0.1155, allocations: 342.6 kB / 498.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.093e-05/0.1156, allocations: 56 kB / 498.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.1158, allocations: 107.9 kB / 498.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000187/0.116, allocations: 179.5 kB / 498.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002848/0.1163, allocations: 306.5 kB / 499 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007164/0.117, allocations: 0.7397 MB / 499.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.117, allocations: 0 / 499.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.117, allocations: 0 / 499.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.117, allocations: 0 / 499.8 MB, free: 12.31 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.001443/0.1185, allocations: 0.8941 MB / 0.4889 GB, free: 11.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.599e-05/0.1185, allocations: 11.89 kB / 0.4889 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.971e-05/0.1186, allocations: 60.19 kB / 0.489 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008508/0.1195, allocations: 0.5254 MB / 0.4895 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.1195, allocations: 33 kB / 0.4895 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.1196, allocations: 44 kB / 0.4896 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007579/0.1204, allocations: 0.5134 MB / 0.4901 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1204, allocations: 11.84 kB / 0.4901 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.479e-05/0.1205, allocations: 23.94 kB / 0.4901 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.375e-05/0.1206, allocations: 17 kB / 0.4901 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005368/0.1211, allocations: 331.7 kB / 0.4904 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.1235, allocations: 2.062 MB / 0.4925 GB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.1239, allocations: 231.6 kB / 0.4927 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.1241, allocations: 78.67 kB / 0.4928 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.1241, allocations: 8 kB / 0.4928 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002339/0.1243, allocations: 165.7 kB / 0.4929 GB, free: 7.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.873e-06/0.1244, allocations: 0 / 0.4929 GB, free: 7.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=25): time 0.001536/0.1259, allocations: 0.9198 MB / 0.4938 GB, free: 6.039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.914e-05/0.126, allocations: 148.2 kB / 0.494 GB, free: 5.863 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004874/0.1265, allocations: 430.1 kB / 0.4944 GB, free: 5.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.1265, allocations: 29.7 kB / 0.4944 GB, free: 5.398 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.1267, allocations: 295.5 kB / 0.4947 GB, free: 5.105 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.108e-05/0.1268, allocations: 91.03 kB / 0.4948 GB, free: 5.016 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.1269, allocations: 74.03 kB / 0.4948 GB, free: 4.938 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1271, allocations: 362.7 kB / 0.4952 GB, free: 4.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.1272, allocations: 80.84 kB / 0.4953 GB, free: 4.492 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.1275, allocations: 229.4 kB / 0.4955 GB, free: 4.211 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.1279, allocations: 320.1 kB / 0.4958 GB, free: 3.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.1279, allocations: 4 kB / 0.4958 GB, free: 3.836 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008405/0.1288, allocations: 441.7 kB / 0.4962 GB, free: 3.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.1288, allocations: 8 kB / 0.4962 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1288, allocations: 4 kB / 0.4962 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003901/0.1292, allocations: 88.98 kB / 0.4963 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.1295, allocations: 79.91 kB / 0.4964 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/0.1316, allocations: 1.833 MB / 0.4982 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.1319, allocations: 16 kB / 0.4982 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.132, allocations: 24.05 kB / 0.4982 GB, free: 1.199 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.0002192/0.1322, allocations: 205.7 kB / 0.4984 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/0.1323, allocations: 43.44 kB / 0.4985 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.716e-05/0.1324, allocations: 55.8 kB / 0.4985 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1324, allocations: 4 kB / 0.4985 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1324, allocations: 0 / 0.4985 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.1325, allocations: 124.6 kB / 0.4986 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.1326, allocations: 8 kB / 0.4986 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.1328, allocations: 19.98 kB / 0.4987 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.061e-05/0.1329, allocations: 23.91 kB / 0.4987 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009627/0.1338, allocations: 0.5271 MB / 0.4992 GB, free: 156 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006265/0.1345, allocations: 0.6573 MB / 0.4998 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002127/0.1347, allocations: 87.95 kB / 0.4999 GB, free: 15.39 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003202/0.135, allocations: 299.1 kB / 0.5002 GB, free: 15.1 MB / 398.1 MB Notification: Performance of Backend: time 6.51e-07/0.135, allocations: 0 / 0.5002 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00217/0.1372, allocations: 0.7332 MB / 0.5009 GB, free: 14.35 MB / 398.1 MB Notification: Performance of SimCode: time 0.002564/0.1398, allocations: 1.721 MB / 0.5026 GB, free: 12.57 MB / 398.1 MB Notification: Performance of Templates: time 0.01279/0.1526, allocations: 6.894 MB / 0.5093 GB, free: 5.668 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)