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.000901/0.000901, allocations: 92.75 kB / 16.65 MB, free: 6.535 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.001079/0.001079, allocations: 172.8 kB / 17.56 MB, free: 6.184 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.18/1.18, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1528/0.1528, allocations: 38.06 MB / 310.1 MB, free: 5.91 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.0004421/0.0004421, allocations: 16 kB / 377.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1853, allocations: 56.32 MB / 433.6 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.004086/0.1894, allocations: 5.906 MB / 439.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.1914, allocations: 2.245 MB / 441.7 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002063/0.1916, allocations: 31.81 kB / 441.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00036/0.192, allocations: 143.1 kB / 441.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005328/0.1925, allocations: 378.2 kB / 442.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004079/0.193, allocations: 207.7 kB / 442.5 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007015/0.1937, allocations: 1.07 MB / 443.6 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003232/0.194, allocations: 398.8 kB / 443.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002552/0.1943, allocations: 286.6 kB / 444.2 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.1945, allocations: 318.7 kB / 444.5 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.088e-05/0.1946, allocations: 32 kB / 444.6 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001206/0.1947, allocations: 71.97 kB / 444.6 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.1948, allocations: 151.4 kB / 444.8 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.195, allocations: 304.2 kB / 445.1 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003833/0.1954, allocations: 0.6889 MB / 445.8 MB, free: 6.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1954, allocations: 4 kB / 445.8 MB, free: 6.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1954, allocations: 0 / 445.8 MB, free: 6.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1954, allocations: 0 / 445.8 MB, free: 6.551 MB / 318.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.001039/0.1965, allocations: 0.7968 MB / 446.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.1965, allocations: 11.98 kB / 446.6 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.028e-05/0.1966, allocations: 90.7 kB / 446.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.283e-05/0.1967, allocations: 64.19 kB / 446.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005419/0.1972, allocations: 0.4899 MB / 447.2 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.1972, allocations: 33 kB / 447.3 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.354e-05/0.1973, allocations: 55.88 kB / 447.3 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005547/0.1979, allocations: 0.5173 MB / 447.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.1979, allocations: 3.938 kB / 447.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/0.198, allocations: 16 kB / 447.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.988e-05/0.198, allocations: 20.98 kB / 447.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.1984, allocations: 339.6 kB / 448.2 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.2, allocations: 2.078 MB / 450.3 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.2004, allocations: 232.2 kB / 450.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.429e-05/0.2005, allocations: 74.62 kB / 450.6 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.2005, allocations: 12.22 kB / 450.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000182/0.2007, allocations: 169.7 kB / 450.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.2007, allocations: 0 / 450.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001172/0.2019, allocations: 0.9161 MB / 451.7 MB, free: 284 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.2019, allocations: 136.5 kB / 451.8 MB, free: 116 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.2023, allocations: 433.8 kB / 452.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.2024, allocations: 29.7 kB / 452.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.2025, allocations: 295.6 kB / 452.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/0.2026, allocations: 86.8 kB / 452.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.731e-05/0.2026, allocations: 37.7 kB / 452.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.2028, allocations: 366.8 kB / 453 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.2029, allocations: 84.83 kB / 453.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.2031, allocations: 221.5 kB / 453.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003481/0.2035, allocations: 324 kB / 453.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2035, allocations: 4 kB / 453.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007221/0.2042, allocations: 437.3 kB / 454.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2042, allocations: 8.562 kB / 454.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2042, allocations: 4 kB / 454.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000358/0.2046, allocations: 92.77 kB / 454.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.2048, allocations: 71.91 kB / 454.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06404/0.2689, allocations: 1.706 MB / 456 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004157/0.2693, allocations: 23.92 kB / 456 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.2694, allocations: 16 kB / 456 MB, free: 11.62 MB / 334.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.0002738/0.2696, allocations: 205.7 kB / 456.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.471e-05/0.2697, allocations: 47.38 kB / 456.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005201/0.2702, allocations: 290 kB / 456.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.2702, allocations: 4 kB / 456.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.2702, allocations: 0 / 456.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2703, allocations: 0 / 456.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009911/0.2713, allocations: 0.7764 MB / 457.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.2713, allocations: 0 / 457.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002398/0.2715, allocations: 51.91 kB / 457.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001806/0.2717, allocations: 48.81 kB / 457.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.2717, allocations: 15.92 kB / 457.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.2727, allocations: 1.433 MB / 458.8 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2728, allocations: 0 / 458.8 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005911/0.2734, allocations: 481.2 kB / 459.3 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.2735, allocations: 136.6 kB / 459.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.617e-05/0.2735, allocations: 8 kB / 459.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.2737, allocations: 15.98 kB / 459.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.723e-05/0.2738, allocations: 24.05 kB / 459.5 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.2738, allocations: 11.98 kB / 459.5 MB, free: 7.844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000272/0.2741, allocations: 299.1 kB / 459.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2741, allocations: 4 kB / 459.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004251/0.2745, allocations: 108 kB / 459.9 MB, free: 7.441 MB / 334.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.001507/0.276, allocations: 1.309 MB / 461.2 MB, free: 6.156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000627/0.2767, allocations: 387.2 kB / 461.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2767, allocations: 5.125 kB / 461.6 MB, free: 5.762 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.277, allocations: 246.6 kB / 461.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006904/0.2777, allocations: 130.8 kB / 462 MB, free: 5.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004792/0.2825, allocations: 4.582 MB / 466.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.2829, allocations: 0.8816 MB / 467.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002126/0.2831, allocations: 72.22 kB / 467.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.2833, allocations: 175.4 kB / 467.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2833, allocations: 0 / 467.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8011/1.084, allocations: 10.55 MB / 478.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002487/1.085, allocations: 271.8 kB / 478.5 MB, free: 4.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.26/3.345, allocations: 0 / 478.5 MB, free: 4.508 MB / 350.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)