Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_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.001079/0.001079, allocations: 108 kB / 16.92 MB, free: 6.332 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.001003/0.001003, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.323/1.323, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2048/0.2048, allocations: 38.04 MB / 329.7 MB, free: 8.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.67 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1051, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007876/0.113, allocations: 5.674 MB / 462.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003311/0.1163, allocations: 2.126 MB / 464.8 MB, free: 140 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004686/0.1168, allocations: 19.88 kB / 464.8 MB, free: 120 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006522/0.1175, allocations: 162.8 kB / 465 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.1188, allocations: 425.6 kB / 465.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006739/0.1195, allocations: 257.1 kB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.1207, allocations: 0.8292 MB / 466.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006476/0.1213, allocations: 0.4967 MB / 467 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005763/0.1219, allocations: 346.7 kB / 467.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005866/0.1225, allocations: 350.6 kB / 467.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.1226, allocations: 52 kB / 467.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002672/0.1229, allocations: 103.9 kB / 467.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.1231, allocations: 179.5 kB / 468 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000369/0.1235, allocations: 310.5 kB / 468.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007645/0.1242, allocations: 0.7165 MB / 469 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1243, allocations: 3.984 kB / 469 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1243, allocations: 3.938 kB / 469 MB, free: 11.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.186e-05/0.1243, allocations: 0 / 469 MB, free: 11.91 MB / 350.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.001993/0.1263, allocations: 0.8979 MB / 469.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1263, allocations: 11.89 kB / 469.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.1265, allocations: 82.72 kB / 470 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.1266, allocations: 72.17 kB / 470 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008298/0.1274, allocations: 0.4902 MB / 470.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.1275, allocations: 32.94 kB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.1276, allocations: 47.91 kB / 470.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007812/0.1284, allocations: 0.5212 MB / 471.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.1284, allocations: 0 / 471.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.325e-05/0.1285, allocations: 20 kB / 471.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.47e-05/0.1285, allocations: 17 kB / 471.2 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000547/0.1291, allocations: 335.7 kB / 471.5 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002658/0.1318, allocations: 2.074 MB / 473.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004192/0.1322, allocations: 238.5 kB / 473.8 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.1323, allocations: 82.61 kB / 473.9 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.1324, allocations: 4 kB / 473.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002567/0.1326, allocations: 172.5 kB / 474.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.013e-06/0.1327, allocations: 0 / 474.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001716/0.1344, allocations: 0.9178 MB / 475 MB, free: 5.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.1345, allocations: 136.5 kB / 475.1 MB, free: 5.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004711/0.1349, allocations: 425.9 kB / 475.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.135, allocations: 29.7 kB / 475.6 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.1352, allocations: 299.5 kB / 475.9 MB, free: 4.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.316e-05/0.1353, allocations: 90.75 kB / 475.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001054/0.1354, allocations: 70.05 kB / 476 MB, free: 4.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1355, allocations: 370.7 kB / 476.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.1357, allocations: 84.83 kB / 476.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000245/0.1359, allocations: 221.8 kB / 476.7 MB, free: 3.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004085/0.1364, allocations: 321.6 kB / 477 MB, free: 3.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1364, allocations: 4 kB / 477 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008422/0.1372, allocations: 445.3 kB / 477.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.1373, allocations: 10.34 kB / 477.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.1373, allocations: 4.562 kB / 477.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004009/0.1377, allocations: 92.77 kB / 477.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.1379, allocations: 71.91 kB / 477.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.1403, allocations: 1.84 MB / 479.4 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.1405, allocations: 19.98 kB / 479.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.1406, allocations: 16 kB / 479.5 MB, free: 0.7148 MB / 350.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.0002524/0.1408, allocations: 209.8 kB / 479.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.388e-05/0.1409, allocations: 47.38 kB / 479.7 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005588/0.1415, allocations: 284.5 kB / 480 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1415, allocations: 7.938 kB / 480 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1415, allocations: 0 / 480 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1415, allocations: 0 / 480 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.1427, allocations: 0.7722 MB / 480.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-06/0.1427, allocations: 7.938 kB / 480.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.143, allocations: 47.91 kB / 480.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002065/0.1432, allocations: 44.81 kB / 480.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.1432, allocations: 15.98 kB / 480.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001378/0.1446, allocations: 1.539 MB / 482.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1446, allocations: 0 / 482.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007697/0.1454, allocations: 486.5 kB / 482.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/0.1456, allocations: 136.5 kB / 483 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.659e-05/0.1457, allocations: 8 kB / 483.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.1459, allocations: 11.98 kB / 483.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.257e-05/0.146, allocations: 23.97 kB / 483.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.146, allocations: 4 kB / 483.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004104/0.1464, allocations: 299.1 kB / 483.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1464, allocations: 0 / 483.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005445/0.147, allocations: 116 kB / 483.5 MB, free: 12.43 MB / 366.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.001778/0.1488, allocations: 1.306 MB / 484.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008447/0.1496, allocations: 411.2 kB / 485.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1497, allocations: 0 / 485.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004071/0.1501, allocations: 245.1 kB / 485.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007707/0.1509, allocations: 129.6 kB / 485.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006105/0.157, allocations: 4.296 MB / 489.9 MB, free: 5.945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004891/0.1575, allocations: 0.8777 MB / 490.7 MB, free: 5.043 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002724/0.1578, allocations: 68.23 kB / 490.8 MB, free: 4.977 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.158, allocations: 171.4 kB / 491 MB, free: 4.809 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.158, allocations: 0 / 491 MB, free: 4.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03948/0.1975, allocations: 11.3 MB / 0.4905 GB, free: 9.719 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.4, allocations: 3.875 kB / 0.4905 GB, free: 9.719 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)