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.001057/0.001057, allocations: 101 kB / 16.5 MB, free: 6.641 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.001049/0.001049, allocations: 194.6 kB / 17.42 MB, free: 6.066 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.427/1.427, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1727/0.1727, allocations: 37.99 MB / 308.6 MB, free: 6.246 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.001661/0.001661, allocations: 63.03 kB / 374.7 MB, free: 4.023 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2306, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.00603/0.2366, allocations: 6.326 MB / 436.3 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003198/0.2399, allocations: 2.28 MB / 438.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005369/0.2404, allocations: 31.81 kB / 438.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006324/0.2411, allocations: 147.2 kB / 438.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008405/0.242, allocations: 382.2 kB / 439.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004779/0.2425, allocations: 199.7 kB / 439.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008971/0.2434, allocations: 1.067 MB / 440.4 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.2438, allocations: 423 kB / 440.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003055/0.2441, allocations: 298.7 kB / 441.1 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003145/0.2444, allocations: 342.6 kB / 441.4 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.697e-05/0.2445, allocations: 36 kB / 441.5 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.2446, allocations: 83.95 kB / 441.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.2448, allocations: 163.5 kB / 441.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001937/0.245, allocations: 290.5 kB / 442 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.2455, allocations: 0.7125 MB / 442.7 MB, free: 6.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2455, allocations: 0 / 442.7 MB, free: 6.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2455, allocations: 0 / 442.7 MB, free: 6.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2455, allocations: 0 / 442.7 MB, free: 6.984 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.001565/0.2471, allocations: 0.898 MB / 443.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.2471, allocations: 11.98 kB / 443.6 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.406e-05/0.2472, allocations: 86.69 kB / 443.7 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.231e-05/0.2473, allocations: 60.28 kB / 443.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006297/0.2479, allocations: 0.4901 MB / 444.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.248, allocations: 40.92 kB / 444.3 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.471e-05/0.2481, allocations: 47.94 kB / 444.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006115/0.2487, allocations: 0.5173 MB / 444.8 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.2487, allocations: 7.906 kB / 444.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.2488, allocations: 16 kB / 444.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.841e-05/0.2488, allocations: 24.92 kB / 444.9 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004418/0.2493, allocations: 335.7 kB / 445.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.2512, allocations: 2.07 MB / 447.3 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.2516, allocations: 236.2 kB / 447.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.2517, allocations: 74.62 kB / 447.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.2517, allocations: 4 kB / 447.6 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.2519, allocations: 166.6 kB / 447.8 MB, free: 1.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.362e-06/0.2519, allocations: 4 kB / 447.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001468/0.2534, allocations: 0.9287 MB / 448.7 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.2535, allocations: 132.5 kB / 448.8 MB, free: 464 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004033/0.2539, allocations: 429.8 kB / 449.2 MB, free: 28 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/0.254, allocations: 37.94 kB / 449.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.2542, allocations: 291.7 kB / 449.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.595e-05/0.2543, allocations: 90.94 kB / 449.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.2544, allocations: 78.03 kB / 449.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.2546, allocations: 354.7 kB / 450.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.2547, allocations: 88.83 kB / 450.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/0.255, allocations: 225.4 kB / 450.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004058/0.2554, allocations: 328 kB / 450.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.2554, allocations: 4 kB / 450.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008441/0.2563, allocations: 433.8 kB / 451.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.2563, allocations: 8 kB / 451.1 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.2563, allocations: 7.984 kB / 451.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000412/0.2567, allocations: 84.78 kB / 451.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/0.257, allocations: 76.06 kB / 451.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.259, allocations: 1.703 MB / 453 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.2593, allocations: 27.92 kB / 453 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.2593, allocations: 16 kB / 453 MB, free: 11.92 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.0002527/0.2596, allocations: 209.6 kB / 453.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.512e-05/0.2597, allocations: 47.5 kB / 453.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005703/0.2602, allocations: 278.1 kB / 453.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.2602, allocations: 4 kB / 453.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.2603, allocations: 4 kB / 453.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.2603, allocations: 11.92 kB / 453.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.2614, allocations: 0.7683 MB / 454.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2614, allocations: 0 / 454.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.2617, allocations: 47.97 kB / 454.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002328/0.262, allocations: 52.8 kB / 454.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.262, allocations: 7.938 kB / 454.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.2633, allocations: 1.437 MB / 455.9 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.2634, allocations: 3.984 kB / 455.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007604/0.2641, allocations: 477.2 kB / 456.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.2643, allocations: 128.7 kB / 456.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.2643, allocations: 8 kB / 456.5 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.2646, allocations: 15.98 kB / 456.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/0.2647, allocations: 31.84 kB / 456.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.2647, allocations: 4 kB / 456.5 MB, free: 8.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003729/0.2651, allocations: 303.1 kB / 456.8 MB, free: 7.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2651, allocations: 0 / 456.8 MB, free: 7.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005289/0.2656, allocations: 112 kB / 457 MB, free: 7.746 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.001858/0.2675, allocations: 1.312 MB / 458.3 MB, free: 6.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008101/0.2683, allocations: 392.2 kB / 458.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2683, allocations: 0 / 458.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004172/0.2687, allocations: 242.3 kB / 458.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000714/0.2695, allocations: 122 kB / 459 MB, free: 5.699 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00598/0.2755, allocations: 4.468 MB / 463.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004563/0.2759, allocations: 0.8815 MB / 464.4 MB, free: 128 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002691/0.2762, allocations: 68.23 kB / 464.4 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002369/0.2765, allocations: 179.4 kB / 464.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2765, allocations: 0 / 464.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04369/0.3202, allocations: 10.8 MB / 475.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/0.3204, allocations: 276.3 kB / 475.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.104/2.425, allocations: 3.938 kB / 475.7 MB, free: 4.66 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)