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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001585/0.001585, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.1 MB / 223.1 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 104.8 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1758/0.1758, allocations: 38.01 MB / 355.9 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 55.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3207, allocations: 55.23 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.00836/0.3291, allocations: 6.329 MB / 483.4 MB, free: 5.465 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003483/0.3327, allocations: 2.275 MB / 485.7 MB, free: 3.848 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003783/0.3331, allocations: 35.53 kB / 485.7 MB, free: 3.832 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006028/0.3337, allocations: 149.8 kB / 485.9 MB, free: 3.758 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008035/0.3345, allocations: 371.7 kB / 486.2 MB, free: 3.547 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.335, allocations: 209.5 kB / 486.4 MB, free: 3.43 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.3364, allocations: 1.073 MB / 487.5 MB, free: 3.023 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005759/0.3369, allocations: 418.9 kB / 487.9 MB, free: 2.863 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004175/0.3374, allocations: 309.2 kB / 488.2 MB, free: 2.727 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004605/0.3378, allocations: 340.9 kB / 488.6 MB, free: 2.59 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.986e-05/0.3379, allocations: 34.38 kB / 488.6 MB, free: 2.59 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.3381, allocations: 83.8 kB / 488.7 MB, free: 2.57 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.3383, allocations: 163.9 kB / 488.8 MB, free: 2.5 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.3386, allocations: 292.1 kB / 489.1 MB, free: 2.328 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008492/0.3395, allocations: 0.7053 MB / 489.8 MB, free: 2.051 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3395, allocations: 0 / 489.8 MB, free: 2.051 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3395, allocations: 0 / 489.8 MB, free: 2.051 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.3395, allocations: 0 / 489.8 MB, free: 2.051 MB / 314.7 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.001596/0.3411, allocations: 0.8976 MB / 490.7 MB, free: 1.391 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.3412, allocations: 14.3 kB / 490.7 MB, free: 1.387 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.3413, allocations: 59.17 kB / 490.8 MB, free: 1.359 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007609/0.342, allocations: 0.4991 MB / 491.3 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.3421, allocations: 31.38 kB / 491.3 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.3422, allocations: 46.58 kB / 491.4 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007749/0.343, allocations: 0.5118 MB / 491.9 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.343, allocations: 9.062 kB / 491.9 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.225e-05/0.3431, allocations: 25.33 kB / 491.9 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.297e-05/0.3431, allocations: 16.95 kB / 491.9 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005744/0.3437, allocations: 337.6 kB / 492.3 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.3464, allocations: 2.073 MB / 494.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.3469, allocations: 227.2 kB / 494.6 MB, free: 14.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.347, allocations: 86.95 kB / 494.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.3471, allocations: 3.688 kB / 494.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.3473, allocations: 160.4 kB / 494.8 MB, free: 14.69 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.653e-06/0.3473, allocations: 0 / 494.8 MB, free: 14.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001643/0.349, allocations: 0.9309 MB / 495.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.3491, allocations: 132.5 kB / 495.9 MB, free: 13.89 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005847/0.3497, allocations: 435.2 kB / 496.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.3497, allocations: 30.89 kB / 496.3 MB, free: 13.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001963/0.3499, allocations: 292.6 kB / 496.6 MB, free: 13.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.35, allocations: 91.08 kB / 496.7 MB, free: 13.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.3501, allocations: 72.98 kB / 496.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3503, allocations: 359.4 kB / 497.1 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.3505, allocations: 88.98 kB / 497.2 MB, free: 12.92 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.3507, allocations: 222 kB / 497.4 MB, free: 12.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004208/0.3512, allocations: 320.1 kB / 497.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3512, allocations: 5.375 kB / 497.7 MB, free: 12.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008548/0.352, allocations: 449.5 kB / 498.2 MB, free: 12.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.3521, allocations: 7.094 kB / 498.2 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.3521, allocations: 5.406 kB / 498.2 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004128/0.3525, allocations: 88.89 kB / 498.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.3528, allocations: 72.67 kB / 498.3 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.3547, allocations: 1.702 MB / 0.4883 GB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.3549, allocations: 21.56 kB / 0.4884 GB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.831e-05/0.355, allocations: 18.55 kB / 0.4884 GB, free: 10.71 MB / 330.7 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.0002411/0.3552, allocations: 205.5 kB / 0.4886 GB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-05/0.3553, allocations: 44.7 kB / 0.4886 GB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005765/0.3559, allocations: 300.1 kB / 0.4889 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3559, allocations: 2.688 kB / 0.4889 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3559, allocations: 1.312 kB / 0.4889 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3559, allocations: 2.547 kB / 0.4889 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.3571, allocations: 0.7773 MB / 0.4897 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3571, allocations: 1.938 kB / 0.4897 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.3574, allocations: 46 kB / 0.4897 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.3576, allocations: 47.59 kB / 0.4898 GB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.3576, allocations: 10.45 kB / 0.4898 GB, free: 9.777 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.3588, allocations: 1.436 MB / 0.4912 GB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3588, allocations: 0.8438 kB / 0.4912 GB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00638/0.3652, allocations: 4.32 MB / 0.4954 GB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.3654, allocations: 130.6 kB / 0.4955 GB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.835e-05/0.3654, allocations: 3.281 kB / 0.4955 GB, free: 4.531 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.3657, allocations: 14.95 kB / 0.4955 GB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.938e-05/0.3658, allocations: 34.5 kB / 0.4956 GB, free: 4.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.3658, allocations: 5 kB / 0.4956 GB, free: 4.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003935/0.3662, allocations: 299.8 kB / 0.4958 GB, free: 4.312 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3662, allocations: 0 / 0.4958 GB, free: 4.312 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000818/0.367, allocations: 160.6 kB / 0.496 GB, free: 4.293 MB / 330.7 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.0009933/0.368, allocations: 461.1 kB / 0.4964 GB, free: 3.957 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008225/0.3689, allocations: 389.4 kB / 0.4968 GB, free: 3.715 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.3689, allocations: 9.188 kB / 0.4968 GB, free: 3.707 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003856/0.3693, allocations: 241.7 kB / 0.4971 GB, free: 3.531 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007158/0.37, allocations: 131.2 kB / 0.4972 GB, free: 3.465 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.3729, allocations: 1.734 MB / 0.4989 GB, free: 2.129 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005446/0.3735, allocations: 0.8892 MB / 0.4997 GB, free: 1.332 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003249/0.3738, allocations: 75.98 kB / 0.4998 GB, free: 1.289 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3739, allocations: 34.12 kB / 0.4998 GB, free: 1.281 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.374, allocations: 0 / 0.4998 GB, free: 1.281 MB / 330.7 MB Notification: Performance of Templates: time 0.01383/0.3878, allocations: 7.246 MB / 0.5069 GB, free: 11.7 MB / 346.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches