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.001078/0.001078, allocations: 108.9 kB / 16.51 MB, free: 6.707 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.001169/0.001169, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.336/1.336, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.167/0.167, allocations: 37.99 MB / 308.6 MB, free: 6.238 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.00145/0.00145, allocations: 67.03 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2588, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005628/0.2645, allocations: 5.8 MB / 435.8 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.2668, allocations: 2.147 MB / 437.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002664/0.2671, allocations: 27.81 kB / 437.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004169/0.2675, allocations: 123.3 kB / 438.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005726/0.2681, allocations: 322.4 kB / 438.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.2685, allocations: 182.9 kB / 438.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006431/0.2691, allocations: 0.8292 MB / 439.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003374/0.2695, allocations: 357.8 kB / 439.7 MB, free: 9.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002847/0.2698, allocations: 258.8 kB / 440 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.2701, allocations: 290.8 kB / 440.3 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.247e-05/0.2701, allocations: 32 kB / 440.3 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/0.2703, allocations: 75.92 kB / 440.4 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.2704, allocations: 139.5 kB / 440.5 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.2706, allocations: 246.7 kB / 440.7 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004299/0.271, allocations: 0.6307 MB / 441.4 MB, free: 8.301 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.271, allocations: 0 / 441.4 MB, free: 8.301 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2711, allocations: 7.875 kB / 441.4 MB, free: 8.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.2711, allocations: 0 / 441.4 MB, free: 8.293 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001325/0.2724, allocations: 0.8352 MB / 442.2 MB, free: 7.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.2724, allocations: 8.031 kB / 442.2 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.292e-05/0.2725, allocations: 78.7 kB / 442.3 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.836e-05/0.2726, allocations: 60.22 kB / 442.4 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000619/0.2732, allocations: 470 kB / 442.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.2733, allocations: 25 kB / 442.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.659e-05/0.2733, allocations: 43.91 kB / 442.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.2739, allocations: 457.1 kB / 443.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2739, allocations: 4 kB / 443.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.2739, allocations: 15.94 kB / 443.4 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.274, allocations: 12 kB / 443.4 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/0.2743, allocations: 278.3 kB / 443.6 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.2759, allocations: 1.855 MB / 445.5 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004067/0.2763, allocations: 263.5 kB / 445.8 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.2764, allocations: 83.05 kB / 445.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.2764, allocations: 7.938 kB / 445.8 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.2767, allocations: 174.8 kB / 446 MB, free: 3.363 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.2767, allocations: 0 / 446 MB, free: 3.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.00135/0.278, allocations: 0.9058 MB / 446.9 MB, free: 2.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.2781, allocations: 136.8 kB / 447.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.2784, allocations: 405.8 kB / 447.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.2784, allocations: 33.7 kB / 447.5 MB, free: 1.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.2786, allocations: 263.8 kB / 447.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.97e-05/0.2786, allocations: 94.66 kB / 447.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.454e-05/0.2787, allocations: 69.69 kB / 447.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.234e-05/0.2788, allocations: 346.8 kB / 448.2 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.2789, allocations: 87.95 kB / 448.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.2791, allocations: 212.2 kB / 448.5 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.2794, allocations: 315.1 kB / 448.8 MB, free: 308 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2794, allocations: 0 / 448.8 MB, free: 308 kB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007623/0.2802, allocations: 431 kB / 449.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.2802, allocations: 7.984 kB / 449.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2802, allocations: 4 kB / 449.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000418/0.2806, allocations: 97.12 kB / 449.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.2809, allocations: 63.91 kB / 449.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002249/0.2831, allocations: 1.831 MB / 451.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.2834, allocations: 19.91 kB / 451.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.2834, allocations: 23.92 kB / 451.3 MB, free: 13.68 MB / 334.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 (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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002189/0.2837, allocations: 193.6 kB / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.838e-05/0.2837, allocations: 39.53 kB / 451.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006022/0.2843, allocations: 302.2 kB / 451.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2844, allocations: 4 kB / 451.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2844, allocations: 3.938 kB / 451.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2844, allocations: 0 / 451.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.2854, allocations: 0.7645 MB / 452.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2854, allocations: 0 / 452.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.2856, allocations: 43.92 kB / 452.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002174/0.2859, allocations: 56.8 kB / 452.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.2859, allocations: 4 kB / 452.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.2871, allocations: 1.441 MB / 454.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.2871, allocations: 4 kB / 454.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007102/0.2879, allocations: 0.4937 MB / 454.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.288, allocations: 136.6 kB / 454.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.718e-05/0.288, allocations: 0 / 454.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.2883, allocations: 15.98 kB / 454.8 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.2883, allocations: 27.91 kB / 454.8 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.2884, allocations: 11.98 kB / 454.8 MB, free: 9.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00029/0.2887, allocations: 275.2 kB / 455.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2887, allocations: 0 / 455.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000481/0.2892, allocations: 108 kB / 455.2 MB, free: 9.523 MB / 334.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 (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.00172/0.2909, allocations: 1.318 MB / 456.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007878/0.2917, allocations: 411.5 kB / 456.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2917, allocations: 0 / 456.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000391/0.2921, allocations: 243.2 kB / 457.2 MB, free: 7.566 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/0.2928, allocations: 122.4 kB / 457.3 MB, free: 7.449 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005502/0.2983, allocations: 4.252 MB / 461.5 MB, free: 3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.2987, allocations: 0.8582 MB / 462.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002689/0.299, allocations: 63.36 kB / 462.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002137/0.2992, allocations: 159.4 kB / 462.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2992, allocations: 4 kB / 462.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.3266, allocations: 10.27 MB / 472.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/0.3269, allocations: 276.8 kB / 473.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/2.406, allocations: 0 / 473.1 MB, free: 7.219 MB / 350.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/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)