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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 109.8 kB / 16.62 MB, free: 6.961 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.002039/0.002039, allocations: 189.8 kB / 17.55 MB, free: 6.066 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.47/1.47, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2141/0.2141, allocations: 38.05 MB / 329.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 70.19 kB / 398.3 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09824, allocations: 58.06 MB / 456.3 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.0074/0.1057, allocations: 5.8 MB / 462.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003923/0.1096, allocations: 2.17 MB / 464.3 MB, free: 424 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008912/0.1105, allocations: 31.81 kB / 464.3 MB, free: 392 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007532/0.1114, allocations: 119.3 kB / 464.5 MB, free: 272 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001328/0.1127, allocations: 334.3 kB / 464.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006626/0.1134, allocations: 202.4 kB / 465 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.1145, allocations: 0.6889 MB / 465.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005887/0.1151, allocations: 434.5 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004875/0.1156, allocations: 286.8 kB / 466.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004064/0.116, allocations: 306.7 kB / 466.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.24e-05/0.1161, allocations: 44 kB / 466.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.1163, allocations: 95.98 kB / 466.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.1164, allocations: 147.5 kB / 467 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002549/0.1167, allocations: 270.7 kB / 467.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006771/0.1174, allocations: 0.6347 MB / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1174, allocations: 0 / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1174, allocations: 0 / 467.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.1174, allocations: 0 / 467.9 MB, free: 12.85 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00154/0.1189, allocations: 0.8467 MB / 468.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.119, allocations: 11.89 kB / 468.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.1191, allocations: 60.28 kB / 468.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006659/0.1198, allocations: 470.2 kB / 469.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.1198, allocations: 29 kB / 469.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.771e-05/0.1199, allocations: 36 kB / 469.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00067/0.1206, allocations: 457.1 kB / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.1206, allocations: 3.938 kB / 469.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.705e-05/0.1206, allocations: 16 kB / 469.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.1207, allocations: 12 kB / 469.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004345/0.1211, allocations: 274.3 kB / 470 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.1232, allocations: 1.87 MB / 471.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004842/0.1237, allocations: 251.7 kB / 472.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.1238, allocations: 86.98 kB / 472.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.1238, allocations: 7.938 kB / 472.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.1241, allocations: 180.4 kB / 472.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.1241, allocations: 0 / 472.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001642/0.1258, allocations: 0.9062 MB / 473.3 MB, free: 7.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.1259, allocations: 140.7 kB / 473.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004215/0.1263, allocations: 409.7 kB / 473.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.1264, allocations: 33.7 kB / 473.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.1265, allocations: 263.9 kB / 474.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.76e-05/0.1266, allocations: 86.66 kB / 474.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1267, allocations: 73.59 kB / 474.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1269, allocations: 354.8 kB / 474.7 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.127, allocations: 83.91 kB / 474.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.1273, allocations: 212.2 kB / 475 MB, free: 5.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.1277, allocations: 319.9 kB / 475.3 MB, free: 4.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1277, allocations: 0 / 475.3 MB, free: 4.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007749/0.1285, allocations: 429.4 kB / 475.7 MB, free: 4.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.1285, allocations: 8 kB / 475.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/0.1285, allocations: 4 kB / 475.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004099/0.1289, allocations: 93.22 kB / 475.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002278/0.1292, allocations: 67.84 kB / 475.9 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.1314, allocations: 2.01 MB / 477.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.1317, allocations: 24.05 kB / 477.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.1317, allocations: 16 kB / 477.9 MB, free: 2.121 MB / 350.1 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.0002071/0.1319, allocations: 201.5 kB / 478.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.756e-05/0.132, allocations: 39.53 kB / 478.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005716/0.1326, allocations: 302.1 kB / 478.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.1326, allocations: 8 kB / 478.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.1326, allocations: 0 / 478.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1326, allocations: 0 / 478.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009891/0.1336, allocations: 0.7688 MB / 479.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1336, allocations: 0 / 479.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.1339, allocations: 47.97 kB / 479.3 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002044/0.1341, allocations: 56.75 kB / 479.3 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.1341, allocations: 4 kB / 479.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.1354, allocations: 1.547 MB / 480.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1354, allocations: 3.938 kB / 480.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007189/0.1361, allocations: 0.4992 MB / 481.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.1363, allocations: 128.7 kB / 481.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.1363, allocations: 11.94 kB / 481.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.1366, allocations: 11.98 kB / 481.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.636e-05/0.1366, allocations: 23.97 kB / 481.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.1367, allocations: 8 kB / 481.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002905/0.137, allocations: 287.1 kB / 481.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.137, allocations: 4 kB / 481.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004762/0.1374, allocations: 100 kB / 481.9 MB, free: 13.82 MB / 366.1 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.0008814/0.1383, allocations: 402.5 kB / 482.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008619/0.1392, allocations: 422.8 kB / 482.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1392, allocations: 0 / 482.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003784/0.1396, allocations: 243.4 kB / 483 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006541/0.1403, allocations: 121.1 kB / 483.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.1422, allocations: 1.278 MB / 484.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.1426, allocations: 0.8504 MB / 485.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002327/0.1428, allocations: 67.34 kB / 485.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.851e-05/0.1429, allocations: 35.42 kB / 485.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1429, allocations: 0 / 485.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of Templates: time 0.01075/0.1537, allocations: 6.131 MB / 491.5 MB, free: 4.43 MB / 366.1 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/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches