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.0008787/0.0008787, allocations: 93.66 kB / 16.65 MB, free: 6.59 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.001011/0.001011, allocations: 182.2 kB / 17.56 MB, free: 6.203 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.175/1.175, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1703/0.1703, allocations: 38.05 MB / 310.1 MB, free: 5.914 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.0005215/0.0005216, allocations: 12 kB / 377.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1901, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.003758/0.1939, allocations: 5.391 MB / 439 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.1958, allocations: 2.12 MB / 441.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001978/0.1961, allocations: 27.81 kB / 441.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002798/0.1963, allocations: 123.3 kB / 441.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004575/0.1968, allocations: 310.4 kB / 441.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.1971, allocations: 183.8 kB / 441.7 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005398/0.1977, allocations: 0.8254 MB / 442.6 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002797/0.1979, allocations: 349.4 kB / 442.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/0.1982, allocations: 242.9 kB / 443.1 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.1984, allocations: 274.8 kB / 443.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.1985, allocations: 24 kB / 443.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.1986, allocations: 67.97 kB / 443.5 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-05/0.1987, allocations: 123.5 kB / 443.6 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.1988, allocations: 268.3 kB / 443.9 MB, free: 8.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003357/0.1992, allocations: 0.6072 MB / 444.5 MB, free: 7.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.1992, allocations: 0 / 444.5 MB, free: 7.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1992, allocations: 4 kB / 444.5 MB, free: 7.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.1992, allocations: 0 / 444.5 MB, free: 7.695 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.0009247/0.2001, allocations: 0.7611 MB / 445.3 MB, free: 6.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.516e-05/0.2002, allocations: 8.031 kB / 445.3 MB, free: 6.879 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.465e-05/0.2002, allocations: 70.72 kB / 445.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.371e-05/0.2003, allocations: 56.28 kB / 445.4 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004646/0.2008, allocations: 469.8 kB / 445.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.2008, allocations: 29 kB / 445.9 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.028e-05/0.2008, allocations: 43.98 kB / 445.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004691/0.2013, allocations: 457.1 kB / 446.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.2013, allocations: 4 kB / 446.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.083e-05/0.2014, allocations: 16 kB / 446.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2014, allocations: 12 kB / 446.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003395/0.2017, allocations: 270.3 kB / 446.7 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.2031, allocations: 1.878 MB / 448.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.2034, allocations: 247.6 kB / 448.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.96e-05/0.2035, allocations: 90.92 kB / 448.9 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.2036, allocations: 8 kB / 448.9 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001745/0.2037, allocations: 173.7 kB / 449 MB, free: 2.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.183e-06/0.2038, allocations: 4 kB / 449 MB, free: 2.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.00113/0.2049, allocations: 0.8973 MB / 449.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.2049, allocations: 136.5 kB / 450.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.2052, allocations: 405.8 kB / 450.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.2053, allocations: 33.95 kB / 450.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.2054, allocations: 263.9 kB / 450.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.2054, allocations: 90.66 kB / 450.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.769e-05/0.2054, allocations: 37.7 kB / 450.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.2055, allocations: 346.8 kB / 451.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.2056, allocations: 83.95 kB / 451.3 MB, free: 460 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.2058, allocations: 220.2 kB / 451.5 MB, free: 180 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.2061, allocations: 307.2 kB / 451.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2061, allocations: 4 kB / 451.8 MB, free: 15.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007178/0.2068, allocations: 439.2 kB / 452.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.2069, allocations: 4 kB / 452.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2069, allocations: 4 kB / 452.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003506/0.2072, allocations: 96.67 kB / 452.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.2074, allocations: 71.78 kB / 452.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05832/0.2658, allocations: 1.815 MB / 454.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000413/0.2662, allocations: 19.98 kB / 454.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.2663, allocations: 24.06 kB / 454.3 MB, free: 13.21 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.0002624/0.2665, allocations: 197.6 kB / 454.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.513e-05/0.2666, allocations: 43.44 kB / 454.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005737/0.2672, allocations: 294.3 kB / 454.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.2672, allocations: 4 kB / 454.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2672, allocations: 7.938 kB / 454.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2672, allocations: 4 kB / 454.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009327/0.2682, allocations: 0.7722 MB / 455.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2682, allocations: 0 / 455.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.2684, allocations: 43.97 kB / 455.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001927/0.2686, allocations: 48.75 kB / 455.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.2686, allocations: 8 kB / 455.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.2697, allocations: 1.441 MB / 457.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.2697, allocations: 11.94 kB / 457.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006288/0.2703, allocations: 0.4898 MB / 457.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.2704, allocations: 136.5 kB / 457.8 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.39e-05/0.2705, allocations: 4 kB / 457.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.2707, allocations: 19.98 kB / 457.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.915e-05/0.2708, allocations: 23.97 kB / 457.8 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.2708, allocations: 4 kB / 457.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002644/0.271, allocations: 287.1 kB / 458.1 MB, free: 9.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2711, allocations: 0 / 458.1 MB, free: 9.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004533/0.2715, allocations: 100 kB / 458.2 MB, free: 9.031 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.001517/0.273, allocations: 1.32 MB / 459.5 MB, free: 7.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006809/0.2737, allocations: 403.2 kB / 459.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2737, allocations: 0 / 459.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003314/0.2741, allocations: 239.6 kB / 460.2 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006393/0.2747, allocations: 138.2 kB / 460.3 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004637/0.2794, allocations: 4.367 MB / 464.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.2797, allocations: 0.8543 MB / 465.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002075/0.2799, allocations: 63.36 kB / 465.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.2801, allocations: 159.4 kB / 465.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2801, allocations: 0 / 465.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7817/1.062, allocations: 10 MB / 475.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000369/1.062, allocations: 276.1 kB / 476 MB, free: 6.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.257/3.319, allocations: 0 / 476 MB, free: 6.887 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)