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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001515/0.001516, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.001503/0.001503, allocations: 190.9 kB / 18.62 MB, free: 4.562 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.401/1.401, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.173/0.173, allocations: 38.04 MB / 330.5 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 66.23 kB / 400.2 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.09193, allocations: 58.06 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006698/0.09866, allocations: 5.701 MB / 464 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002873/0.1016, allocations: 2.134 MB / 466.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.1018, allocations: 19.88 kB / 466.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004879/0.1023, allocations: 166.8 kB / 466.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007843/0.1031, allocations: 421.6 kB / 466.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000497/0.1036, allocations: 249 kB / 467 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000943/0.1046, allocations: 0.8448 MB / 467.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005376/0.1051, allocations: 0.4889 MB / 468.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003877/0.1055, allocations: 350.7 kB / 468.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004526/0.106, allocations: 334.6 kB / 469 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.154e-05/0.1061, allocations: 60 kB / 469 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.1063, allocations: 104 kB / 469.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.1064, allocations: 179.5 kB / 469.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002708/0.1067, allocations: 310.5 kB / 469.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006761/0.1074, allocations: 0.7204 MB / 470.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1074, allocations: 4 kB / 470.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1074, allocations: 0 / 470.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.1074, allocations: 0 / 470.3 MB, free: 11.24 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.00151/0.1089, allocations: 0.9018 MB / 471.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.109, allocations: 11.89 kB / 471.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.1091, allocations: 68.17 kB / 471.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008387/0.1099, allocations: 0.5177 MB / 471.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.11, allocations: 29 kB / 471.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.1101, allocations: 51.91 kB / 471.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007218/0.1108, allocations: 0.5173 MB / 472.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.1109, allocations: 0 / 472.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.784e-05/0.1109, allocations: 16 kB / 472.5 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.167e-05/0.111, allocations: 20.94 kB / 472.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005344/0.1115, allocations: 339.6 kB / 472.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.114, allocations: 2.062 MB / 474.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004009/0.1144, allocations: 235.7 kB / 475.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.1146, allocations: 82.55 kB / 475.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.1146, allocations: 4 kB / 475.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.1148, allocations: 165.7 kB / 475.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.1149, allocations: 0 / 475.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001511/0.1164, allocations: 0.921 MB / 476.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.1165, allocations: 132.8 kB / 476.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005172/0.117, allocations: 433.8 kB / 476.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.117, allocations: 29.7 kB / 476.8 MB, free: 4.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.1172, allocations: 303.8 kB / 477.1 MB, free: 4.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.1173, allocations: 86.75 kB / 477.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.69e-05/0.1174, allocations: 74.05 kB / 477.3 MB, free: 3.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1176, allocations: 354.7 kB / 477.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.1177, allocations: 88.83 kB / 477.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.118, allocations: 225.8 kB / 478 MB, free: 3.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.1183, allocations: 325.7 kB / 478.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1184, allocations: 0 / 478.3 MB, free: 2.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007879/0.1191, allocations: 445.6 kB / 478.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1192, allocations: 8 kB / 478.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1192, allocations: 4 kB / 478.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003987/0.1196, allocations: 97 kB / 478.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/0.1199, allocations: 75.84 kB / 478.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002435/0.1224, allocations: 1.813 MB / 480.7 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.1226, allocations: 19.98 kB / 480.7 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.1227, allocations: 20.06 kB / 480.7 MB, free: 132 kB / 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.0002292/0.1229, allocations: 216.7 kB / 480.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.886e-05/0.123, allocations: 47.38 kB / 481 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005237/0.1235, allocations: 282.1 kB / 481.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1235, allocations: 0 / 481.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1235, allocations: 4 kB / 481.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1235, allocations: 4 kB / 481.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.1246, allocations: 0.7745 MB / 482.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1246, allocations: 3.938 kB / 482.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.1249, allocations: 47.91 kB / 482.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001936/0.1251, allocations: 52.75 kB / 482.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.1251, allocations: 15.98 kB / 482.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001285/0.1264, allocations: 1.535 MB / 483.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.1264, allocations: 7.969 kB / 483.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006695/0.1271, allocations: 482.4 kB / 484.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.1273, allocations: 140.6 kB / 484.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.1273, allocations: 3.938 kB / 484.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.1275, allocations: 15.98 kB / 484.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.535e-05/0.1276, allocations: 23.97 kB / 484.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.1276, allocations: 4 kB / 484.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003079/0.1279, allocations: 299.1 kB / 484.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1279, allocations: 0 / 484.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004418/0.1284, allocations: 112 kB / 484.8 MB, free: 11.84 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.0008377/0.1292, allocations: 414.2 kB / 485.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007036/0.13, allocations: 395.3 kB / 485.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.13, allocations: 4.125 kB / 485.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000345/0.1303, allocations: 242.4 kB / 485.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000628/0.131, allocations: 132.6 kB / 485.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.1328, allocations: 1.181 MB / 487.1 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005113/0.1333, allocations: 0.8738 MB / 488 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.1336, allocations: 72.22 kB / 488.1 MB, free: 8.617 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.1337, allocations: 35.42 kB / 488.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1337, allocations: 0 / 488.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of Templates: time 0.01077/0.1444, allocations: 6.449 MB / 494.5 MB, free: 2.207 MB / 366.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches