Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001509/0.001509, allocations: 110.2 kB / 17.07 MB, free: 6.016 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.001578/0.001578, allocations: 189.4 kB / 18 MB, free: 5.098 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.391/1.391, 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.1804/0.1804, allocations: 38.04 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 67.89 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3028, allocations: 58.05 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005774/0.3086, allocations: 5.262 MB / 0.5087 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.3108, allocations: 1.567 MB / 0.5103 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002723/0.3111, allocations: 20.12 kB / 0.5103 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003771/0.3115, allocations: 125.1 kB / 0.5104 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007169/0.3123, allocations: 319.7 kB / 0.5107 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003692/0.3127, allocations: 149.5 kB / 0.5109 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000722/0.3134, allocations: 0.7 MB / 0.5115 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004842/0.3139, allocations: 454.2 kB / 0.512 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003419/0.3142, allocations: 286.9 kB / 0.5123 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003724/0.3146, allocations: 286 kB / 0.5125 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-05/0.3147, allocations: 46.97 kB / 0.5126 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.563e-05/0.3148, allocations: 49.16 kB / 0.5126 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.3149, allocations: 151.9 kB / 0.5128 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.3152, allocations: 268.1 kB / 0.513 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006527/0.3158, allocations: 0.5942 MB / 0.5136 GB, free: 1.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3159, allocations: 0 / 0.5136 GB, free: 1.164 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3159, allocations: 0 / 0.5136 GB, free: 1.164 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.3159, allocations: 4 kB / 0.5136 GB, free: 1.16 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001185/0.3171, allocations: 0.7964 MB / 0.5144 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3171, allocations: 14.19 kB / 0.5144 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.184e-05/0.3172, allocations: 87.61 kB / 0.5145 GB, free: 488 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.103e-05/0.3173, allocations: 54.7 kB / 0.5145 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006332/0.3179, allocations: 474 kB / 0.515 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.904e-05/0.318, allocations: 59.09 kB / 0.515 GB, free: 76 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.546e-05/0.3181, allocations: 48.55 kB / 0.5151 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008831/0.319, allocations: 0.497 MB / 0.5156 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.319, allocations: 1.625 kB / 0.5156 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.325e-05/0.3191, allocations: 16.44 kB / 0.5156 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3191, allocations: 11.81 kB / 0.5156 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007069/0.3198, allocations: 343.8 kB / 0.5159 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.3225, allocations: 1.965 MB / 0.5178 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.323, allocations: 226.9 kB / 0.5181 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.3233, allocations: 101.1 kB / 0.5182 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.3233, allocations: 2.812 kB / 0.5182 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.3234, allocations: 37.34 kB / 0.5182 GB, free: 13.9 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.923e-06/0.3234, allocations: 0.6875 kB / 0.5182 GB, free: 13.9 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001933/0.3253, allocations: 0.8506 MB / 0.519 GB, free: 13.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.3254, allocations: 110.8 kB / 0.5191 GB, free: 13.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003965/0.3258, allocations: 335.8 kB / 0.5195 GB, free: 13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.3258, allocations: 30.95 kB / 0.5195 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.3261, allocations: 273.5 kB / 0.5197 GB, free: 12.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.883e-05/0.3262, allocations: 85.06 kB / 0.5198 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3263, allocations: 67.44 kB / 0.5199 GB, free: 12.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.3265, allocations: 350.4 kB / 0.5202 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.3267, allocations: 79.94 kB / 0.5203 GB, free: 12.28 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000323/0.327, allocations: 212.5 kB / 0.5205 GB, free: 12.08 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.3283, allocations: 0.5573 MB / 0.521 GB, free: 11.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3283, allocations: 1.125 kB / 0.521 GB, free: 11.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009274/0.3293, allocations: 418.4 kB / 0.5214 GB, free: 11.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3293, allocations: 7.641 kB / 0.5215 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3293, allocations: 4.75 kB / 0.5215 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003354/0.3297, allocations: 84.86 kB / 0.5215 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.3299, allocations: 64.58 kB / 0.5216 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/0.3321, allocations: 1.935 MB / 0.5235 GB, free: 9.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.3324, allocations: 13.77 kB / 0.5235 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.3324, allocations: 18.66 kB / 0.5235 GB, free: 9.707 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0002698/0.3327, allocations: 191 kB / 0.5237 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.3328, allocations: 40.59 kB / 0.5237 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.425e-05/0.3328, allocations: 45.94 kB / 0.5238 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3328, allocations: 2.75 kB / 0.5238 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3329, allocations: 2.125 kB / 0.5238 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3329, allocations: 2.266 kB / 0.5238 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.3342, allocations: 0.7755 MB / 0.5245 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3342, allocations: 1.125 kB / 0.5246 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.3345, allocations: 49.48 kB / 0.5246 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.711e-05/0.3346, allocations: 22.38 kB / 0.5246 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.3347, allocations: 6.875 kB / 0.5246 GB, free: 8.926 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/0.3358, allocations: 1.382 MB / 0.526 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3358, allocations: 1.594 kB / 0.526 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008045/0.3366, allocations: 0.5052 MB / 0.5265 GB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.3368, allocations: 119.8 kB / 0.5266 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.3368, allocations: 5.469 kB / 0.5266 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.337, allocations: 11.09 kB / 0.5266 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.263e-05/0.3371, allocations: 29.08 kB / 0.5266 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.3371, allocations: 6.156 kB / 0.5266 GB, free: 7.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002557/0.3374, allocations: 232.3 kB / 0.5269 GB, free: 6.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3374, allocations: 0 / 0.5269 GB, free: 6.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000561/0.338, allocations: 94.31 kB / 0.5269 GB, free: 6.879 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001088/0.3391, allocations: 1.035 MB / 0.528 GB, free: 6.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008297/0.3399, allocations: 378 kB / 0.5283 GB, free: 5.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3399, allocations: 2.531 kB / 0.5283 GB, free: 5.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003653/0.3403, allocations: 216.4 kB / 0.5285 GB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007087/0.341, allocations: 107 kB / 0.5286 GB, free: 5.625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005484/0.3465, allocations: 3.702 MB / 0.5322 GB, free: 3.074 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005289/0.3471, allocations: 0.8443 MB / 0.5331 GB, free: 2.359 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000224/0.3473, allocations: 51.2 kB / 0.5331 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.3475, allocations: 140 kB / 0.5333 GB, free: 2.238 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3475, allocations: 0 / 0.5333 GB, free: 2.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03768/0.3852, allocations: 8.496 MB / 0.5415 GB, free: 14.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.44, allocations: 5.906 kB / 0.5416 GB, free: 14.84 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)