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.0007749/0.0007749, allocations: 84.81 kB / 16.31 MB, free: 6 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.0009753/0.0009753, allocations: 180.5 kB / 17.21 MB, free: 5.902 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.417/1.417, allocations: 223.2 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3103/0.3103, allocations: 38.08 MB / 330.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003177, allocations: 8 kB / 400.2 MB, free: 9.16 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3377, allocations: 59.17 MB / 459.3 MB, free: 30.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.005707/0.3434, allocations: 5.607 MB / 464.9 MB, free: 26.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003252/0.3467, allocations: 2.166 MB / 467.1 MB, free: 24.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004102/0.3471, allocations: 29.06 kB / 467.1 MB, free: 24.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/0.3476, allocations: 151.9 kB / 467.3 MB, free: 24.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009291/0.3486, allocations: 399.2 kB / 467.7 MB, free: 24.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006319/0.3492, allocations: 223.4 kB / 467.9 MB, free: 24.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.3503, allocations: 0.8972 MB / 468.8 MB, free: 23.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005132/0.3508, allocations: 364.4 kB / 469.1 MB, free: 23.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.3512, allocations: 289.6 kB / 469.4 MB, free: 23.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004241/0.3516, allocations: 315.9 kB / 469.7 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.85e-05/0.3517, allocations: 26.16 kB / 469.8 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.3519, allocations: 66.44 kB / 469.8 MB, free: 23.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.3521, allocations: 148 kB / 470 MB, free: 23.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.3522, allocations: 138.6 kB / 470.1 MB, free: 23.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006493/0.3529, allocations: 0.5584 MB / 470.7 MB, free: 23.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3529, allocations: 0.7031 kB / 470.7 MB, free: 23.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3529, allocations: 4 kB / 470.7 MB, free: 23.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.3529, allocations: 0 / 470.7 MB, free: 23.04 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.001288/0.3542, allocations: 0.8012 MB / 471.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.3542, allocations: 9.188 kB / 471.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.387e-05/0.3543, allocations: 80.59 kB / 471.5 MB, free: 22.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.761e-05/0.3544, allocations: 62.69 kB / 471.6 MB, free: 22.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007145/0.3552, allocations: 497.9 kB / 472.1 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.016e-05/0.3552, allocations: 30.44 kB / 472.1 MB, free: 21.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.577e-05/0.3553, allocations: 53.42 kB / 472.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007341/0.356, allocations: 0.5045 MB / 472.7 MB, free: 21.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.3561, allocations: 13.38 kB / 472.7 MB, free: 21.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.266e-05/0.3561, allocations: 16.31 kB / 472.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.897e-05/0.3562, allocations: 17.56 kB / 472.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.3567, allocations: 334 kB / 473.1 MB, free: 21.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002388/0.3591, allocations: 2.076 MB / 475.1 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004086/0.3596, allocations: 230 kB / 475.4 MB, free: 19.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.3597, allocations: 87.17 kB / 475.4 MB, free: 19.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.3597, allocations: 11.73 kB / 475.5 MB, free: 19.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002699/0.36, allocations: 159.9 kB / 475.6 MB, free: 19.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.36, allocations: 5.375 kB / 475.6 MB, free: 19.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001404/0.3614, allocations: 0.9241 MB / 476.5 MB, free: 19.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.3615, allocations: 132.1 kB / 476.7 MB, free: 18.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004661/0.362, allocations: 422.9 kB / 477.1 MB, free: 18.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.362, allocations: 36.45 kB / 477.1 MB, free: 18.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.3622, allocations: 291.4 kB / 477.4 MB, free: 18.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.968e-05/0.3623, allocations: 95.25 kB / 477.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.523e-05/0.3623, allocations: 5.375 kB / 477.5 MB, free: 18.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.558e-05/0.3624, allocations: 355.2 kB / 477.8 MB, free: 18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.3626, allocations: 82.83 kB / 477.9 MB, free: 17.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.3628, allocations: 225.8 kB / 478.1 MB, free: 17.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.363, allocations: 116.5 kB / 478.3 MB, free: 17.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.363, allocations: 5.125 kB / 478.3 MB, free: 17.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007618/0.3638, allocations: 443.5 kB / 478.7 MB, free: 17.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.3638, allocations: 12.58 kB / 478.7 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3638, allocations: 4.094 kB / 478.7 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003549/0.3642, allocations: 92.45 kB / 478.8 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.3644, allocations: 75.22 kB / 478.9 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.366, allocations: 1.696 MB / 480.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.3662, allocations: 25.83 kB / 480.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.656e-05/0.3663, allocations: 12.31 kB / 480.6 MB, free: 15.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002329/0.3665, allocations: 216.5 kB / 480.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.287e-05/0.3666, allocations: 44 kB / 480.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004889/0.3671, allocations: 280.6 kB / 481.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.3671, allocations: 3 kB / 481.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.3671, allocations: 2.094 kB / 481.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3671, allocations: 9.016 kB / 481.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009228/0.368, allocations: 0.7733 MB / 481.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.368, allocations: 0 / 481.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.3683, allocations: 44.61 kB / 482 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.3685, allocations: 58.47 kB / 482 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.3685, allocations: 7.125 kB / 482 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008585/0.3693, allocations: 1.437 MB / 483.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3694, allocations: 4.703 kB / 483.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005804/0.3699, allocations: 481.5 kB / 483.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.3701, allocations: 139.5 kB / 484.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.025e-05/0.3701, allocations: 10.2 kB / 484.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.3703, allocations: 8.812 kB / 484.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.5e-05/0.3704, allocations: 34.33 kB / 484.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.3704, allocations: 9.5 kB / 484.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002928/0.3707, allocations: 288.2 kB / 484.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3707, allocations: 3.938 kB / 484.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005134/0.3712, allocations: 113.9 kB / 484.5 MB, free: 12.6 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001556/0.3728, allocations: 1.295 MB / 485.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006812/0.3735, allocations: 391 kB / 486.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3735, allocations: 0 / 486.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.3738, allocations: 237.6 kB / 486.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006637/0.3745, allocations: 124.3 kB / 486.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004059/0.3786, allocations: 3.11 MB / 489.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.3789, allocations: 0.8779 MB / 490.6 MB, free: 7.699 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002958/0.3792, allocations: 72.22 kB / 490.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.3794, allocations: 175.4 kB / 490.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3794, allocations: 4 kB / 490.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.408, allocations: 10.46 MB / 0.4895 GB, free: 13.23 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002829/0.4083, allocations: 272.4 kB / 0.4898 GB, free: 12.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.094/2.502, allocations: 0 / 0.4898 GB, free: 12.87 MB / 366.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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat does not exist to compare? outputFormat=mat