Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001506/0.001506, allocations: 184.9 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.529/1.529, allocations: 205.1 MB / 223.1 MB, free: 8.457 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.001265/0.001265, allocations: 106.7 kB / 270.5 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1762/0.1762, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 47.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3077, allocations: 55.24 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007854/0.3156, allocations: 5.801 MB / 482.9 MB, free: 5.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004171/0.3198, allocations: 2.146 MB / 485 MB, free: 4.312 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000759/0.3206, allocations: 29.09 kB / 485.1 MB, free: 4.301 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000873/0.3215, allocations: 129.2 kB / 485.2 MB, free: 4.238 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001345/0.3229, allocations: 316.2 kB / 485.5 MB, free: 4.055 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006724/0.3236, allocations: 177.8 kB / 485.7 MB, free: 3.949 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.3249, allocations: 0.8323 MB / 486.5 MB, free: 3.621 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005334/0.3254, allocations: 366.2 kB / 486.9 MB, free: 3.473 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004626/0.3259, allocations: 259.7 kB / 487.1 MB, free: 3.359 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004975/0.3264, allocations: 292.9 kB / 487.4 MB, free: 3.234 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.341e-05/0.3265, allocations: 30.25 kB / 487.4 MB, free: 3.234 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.3267, allocations: 74.36 kB / 487.5 MB, free: 3.219 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.3269, allocations: 130.5 kB / 487.6 MB, free: 3.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002463/0.3272, allocations: 251.3 kB / 487.9 MB, free: 3.012 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008507/0.328, allocations: 0.628 MB / 488.5 MB, free: 2.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.328, allocations: 0 / 488.5 MB, free: 2.758 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.3281, allocations: 0 / 488.5 MB, free: 2.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.3281, allocations: 4 kB / 488.5 MB, free: 2.754 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00179/0.3299, allocations: 0.8398 MB / 489.4 MB, free: 2.129 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3299, allocations: 9.344 kB / 489.4 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.3301, allocations: 56.38 kB / 489.4 MB, free: 2.102 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007954/0.3309, allocations: 465.2 kB / 489.9 MB, free: 1.762 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.3309, allocations: 28.25 kB / 489.9 MB, free: 1.746 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.471e-05/0.331, allocations: 41.44 kB / 489.9 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/0.3317, allocations: 454 kB / 490.4 MB, free: 1.477 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.434e-05/0.3317, allocations: 6.125 kB / 490.4 MB, free: 1.473 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.795e-05/0.3318, allocations: 16.91 kB / 490.4 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.3318, allocations: 12.22 kB / 490.4 MB, free: 1.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004984/0.3323, allocations: 278.7 kB / 490.7 MB, free: 1.363 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.3344, allocations: 1.865 MB / 492.6 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005387/0.335, allocations: 251.9 kB / 492.8 MB, free: 15.76 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.3352, allocations: 87.72 kB / 492.9 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.798e-05/0.3352, allocations: 11.03 kB / 492.9 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002971/0.3355, allocations: 168.5 kB / 493.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.214e-06/0.3355, allocations: 0 / 493.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001809/0.3374, allocations: 0.9072 MB / 494 MB, free: 14.98 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.548e-05/0.3374, allocations: 136.8 kB / 494.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005262/0.338, allocations: 408.7 kB / 494.5 MB, free: 14.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.338, allocations: 31.92 kB / 494.5 MB, free: 14.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.3382, allocations: 263.8 kB / 494.8 MB, free: 14.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.917e-05/0.3383, allocations: 90.19 kB / 494.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.3385, allocations: 75.28 kB / 495 MB, free: 14.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3386, allocations: 349.6 kB / 495.3 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.3388, allocations: 82.45 kB / 495.4 MB, free: 13.9 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002858/0.3391, allocations: 212.3 kB / 495.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004388/0.3396, allocations: 314 kB / 495.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.3396, allocations: 2.406 kB / 495.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009644/0.3406, allocations: 434.4 kB / 496.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3406, allocations: 7.875 kB / 496.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3406, allocations: 9.219 kB / 496.3 MB, free: 13.26 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004764/0.3411, allocations: 96.08 kB / 496.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.3414, allocations: 70.72 kB / 496.5 MB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002308/0.3437, allocations: 1.808 MB / 498.3 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.344, allocations: 21.44 kB / 498.3 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/0.3441, allocations: 18.3 kB / 498.3 MB, free: 11.63 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003001/0.3444, allocations: 198.1 kB / 498.5 MB, free: 11.47 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.909e-05/0.3445, allocations: 47.86 kB / 498.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006447/0.3451, allocations: 293 kB / 498.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.3451, allocations: 6.844 kB / 498.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3451, allocations: 2.594 kB / 498.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.3451, allocations: 5.578 kB / 498.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/0.3466, allocations: 0.7671 MB / 499.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3466, allocations: 5.438 kB / 499.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00025/0.3469, allocations: 44.22 kB / 499.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002548/0.3472, allocations: 49.3 kB / 499.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.3472, allocations: 7.625 kB / 499.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/0.3488, allocations: 1.441 MB / 0.4895 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3488, allocations: 2.062 kB / 0.4895 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007071/0.3559, allocations: 4.405 MB / 0.4938 GB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.3561, allocations: 131.7 kB / 0.4939 GB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.789e-05/0.3561, allocations: 6.438 kB / 0.4939 GB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.3563, allocations: 16.36 kB / 0.4939 GB, free: 5.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.636e-05/0.3565, allocations: 29.12 kB / 0.4939 GB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.3565, allocations: 6.656 kB / 0.4939 GB, free: 5.641 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003999/0.3569, allocations: 283.6 kB / 0.4942 GB, free: 5.469 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3569, allocations: 0 / 0.4942 GB, free: 5.469 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008498/0.3578, allocations: 153.5 kB / 0.4944 GB, free: 5.445 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,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 (24): * Single equations (assignments): 22 * 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.0009965/0.3588, allocations: 453.8 kB / 0.4948 GB, free: 5.117 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.3598, allocations: 397.3 kB / 0.4952 GB, free: 4.875 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3598, allocations: 1.281 kB / 0.4952 GB, free: 4.875 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004757/0.3603, allocations: 250.6 kB / 0.4954 GB, free: 4.695 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007548/0.3611, allocations: 126.5 kB / 0.4955 GB, free: 4.625 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002582/0.3637, allocations: 1.625 MB / 0.4971 GB, free: 3.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004813/0.3642, allocations: 0.859 MB / 0.498 GB, free: 2.598 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003175/0.3645, allocations: 67.05 kB / 0.498 GB, free: 2.566 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.3646, allocations: 36.48 kB / 0.4981 GB, free: 2.555 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.3646, allocations: 0 / 0.4981 GB, free: 2.555 MB / 330.7 MB Notification: Performance of Templates: time 0.0145/0.3791, allocations: 7.026 MB / 0.5049 GB, free: 13.77 MB / 346.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches