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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001202/0.001202, allocations: 111.9 kB / 17.06 MB, free: 5.988 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.001184/0.001184, allocations: 195.9 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1864/0.1864, allocations: 38.04 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 67.88 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3135, allocations: 58.06 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006353/0.3199, allocations: 5.702 MB / 0.5092 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003034/0.323, allocations: 2.107 MB / 0.5112 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003728/0.3234, allocations: 23.53 kB / 0.5113 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000557/0.324, allocations: 172.4 kB / 0.5114 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008757/0.3249, allocations: 415.5 kB / 0.5118 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.3255, allocations: 259 kB / 0.5121 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009241/0.3264, allocations: 0.8361 MB / 0.5129 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006061/0.327, allocations: 0.4982 MB / 0.5134 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004479/0.3275, allocations: 346.5 kB / 0.5137 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004319/0.3279, allocations: 344.8 kB / 0.514 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.498e-05/0.328, allocations: 54.19 kB / 0.5141 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.3283, allocations: 105.4 kB / 0.5142 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.3284, allocations: 182.4 kB / 0.5144 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002598/0.3287, allocations: 303.6 kB / 0.5146 GB, free: 344 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008336/0.3295, allocations: 0.7408 MB / 0.5154 GB, free: 36 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3296, allocations: 0.9375 kB / 0.5154 GB, free: 36 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3296, allocations: 0 / 0.5154 GB, free: 36 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.3296, allocations: 0 / 0.5154 GB, free: 36 kB / 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.001803/0.3314, allocations: 0.9051 MB / 0.5163 GB, free: 15.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.3314, allocations: 9.781 kB / 0.5163 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001159/0.3316, allocations: 84.47 kB / 0.5163 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.3317, allocations: 67.12 kB / 0.5164 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009445/0.3326, allocations: 0.5275 MB / 0.5169 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.983e-05/0.3327, allocations: 34.22 kB / 0.517 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.3328, allocations: 46.61 kB / 0.517 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000997/0.3338, allocations: 0.5251 MB / 0.5175 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.3339, allocations: 1.344 kB / 0.5175 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-05/0.3339, allocations: 16.09 kB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.811e-05/0.334, allocations: 17.53 kB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007536/0.3348, allocations: 336.1 kB / 0.5179 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003337/0.3381, allocations: 2.061 MB / 0.5199 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005327/0.3387, allocations: 231.7 kB / 0.5201 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.3388, allocations: 81.48 kB / 0.5202 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.3389, allocations: 2.125 kB / 0.5202 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004338/0.3393, allocations: 172.9 kB / 0.5203 GB, free: 12.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.455e-06/0.3393, allocations: 3.938 kB / 0.5203 GB, free: 12.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002085/0.3414, allocations: 0.9471 MB / 0.5213 GB, free: 11.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/0.3415, allocations: 139 kB / 0.5214 GB, free: 11.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000537/0.3421, allocations: 429.1 kB / 0.5218 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.3421, allocations: 30.73 kB / 0.5218 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.3424, allocations: 301.2 kB / 0.5221 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.352e-05/0.3425, allocations: 94.12 kB / 0.5222 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.3426, allocations: 78.02 kB / 0.5223 GB, free: 11.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3428, allocations: 355.2 kB / 0.5226 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.343, allocations: 92.66 kB / 0.5227 GB, free: 10.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002853/0.3433, allocations: 226.5 kB / 0.5229 GB, free: 10.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005245/0.3438, allocations: 320.9 kB / 0.5232 GB, free: 10.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3438, allocations: 2.094 kB / 0.5232 GB, free: 10.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001082/0.3449, allocations: 441.7 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.3449, allocations: 7.531 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.345, allocations: 4.125 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005041/0.3455, allocations: 93.5 kB / 0.5238 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.3458, allocations: 72.38 kB / 0.5238 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.3481, allocations: 1.835 MB / 0.5256 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.3485, allocations: 25.58 kB / 0.5257 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.3486, allocations: 14.64 kB / 0.5257 GB, free: 8.465 MB / 398.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.000372/0.3489, allocations: 202 kB / 0.5259 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.539e-05/0.349, allocations: 48.86 kB / 0.5259 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006441/0.3497, allocations: 283.1 kB / 0.5262 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3497, allocations: 6.969 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3497, allocations: 1.656 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.3497, allocations: 3.109 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.3511, allocations: 0.7709 MB / 0.5269 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.3511, allocations: 5.656 kB / 0.5269 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.3514, allocations: 49.09 kB / 0.527 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002175/0.3516, allocations: 53.92 kB / 0.527 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/0.3516, allocations: 7.562 kB / 0.5271 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/0.3531, allocations: 1.538 MB / 0.5286 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3532, allocations: 5.688 kB / 0.5286 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007958/0.354, allocations: 486.1 kB / 0.529 GB, free: 5.832 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.3541, allocations: 142.3 kB / 0.5292 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.411e-05/0.3542, allocations: 7.703 kB / 0.5292 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.3544, allocations: 17.05 kB / 0.5292 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.721e-05/0.3545, allocations: 17.97 kB / 0.5292 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.3545, allocations: 14.8 kB / 0.5292 GB, free: 5.676 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003656/0.3549, allocations: 298.7 kB / 0.5295 GB, free: 5.535 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3549, allocations: 4 kB / 0.5295 GB, free: 5.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005325/0.3554, allocations: 111.9 kB / 0.5296 GB, free: 5.52 MB / 398.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.002272/0.3577, allocations: 1.293 MB / 0.5309 GB, free: 4.605 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008153/0.3585, allocations: 401.7 kB / 0.5313 GB, free: 4.387 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.3586, allocations: 1.594 kB / 0.5313 GB, free: 4.387 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000388/0.359, allocations: 245.4 kB / 0.5315 GB, free: 4.227 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007785/0.3597, allocations: 140 kB / 0.5316 GB, free: 4.176 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006007/0.3658, allocations: 4.228 MB / 0.5358 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00057/0.3664, allocations: 0.8824 MB / 0.5366 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000315/0.3667, allocations: 68.72 kB / 0.5367 GB, free: 0.707 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002625/0.367, allocations: 173.9 kB / 0.5368 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of SimCode: time 7.42e-07/0.367, allocations: 0 / 0.5368 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04304/0.41, allocations: 11.5 MB / 0.5481 GB, free: 10.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.84, allocations: 12.64 kB / 0.5481 GB, free: 10.19 MB / 414.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)