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.0007595/0.0007599, allocations: 90.34 kB / 16.65 MB, free: 6.535 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.0007972/0.0007974, allocations: 174.8 kB / 17.56 MB, free: 6.184 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.194/1.194, allocations: 223.3 MB / 241.6 MB, free: 14.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1536/0.1536, allocations: 38.09 MB / 330.8 MB, free: 8.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002983, allocations: 12 kB / 400.7 MB, free: 34.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09129, allocations: 59.17 MB / 459.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005447/0.09677, allocations: 5.394 MB / 465.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002905/0.0997, allocations: 2.143 MB / 467.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003721/0.1001, allocations: 27.81 kB / 467.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004599/0.1006, allocations: 119.3 kB / 467.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007783/0.1014, allocations: 334.2 kB / 467.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004586/0.1018, allocations: 179.8 kB / 468.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009009/0.1027, allocations: 0.8332 MB / 468.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004376/0.1032, allocations: 353.5 kB / 469.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/0.1036, allocations: 238.8 kB / 469.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003616/0.1039, allocations: 274.8 kB / 469.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.684e-05/0.104, allocations: 24 kB / 469.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.1042, allocations: 67.97 kB / 469.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.1043, allocations: 119.6 kB / 470 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/0.1045, allocations: 260.5 kB / 470.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000522/0.1051, allocations: 0.6149 MB / 470.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1051, allocations: 4 kB / 470.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1051, allocations: 4 kB / 470.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.1051, allocations: 0 / 470.8 MB, free: 12.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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001248/0.1064, allocations: 0.7457 MB / 471.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1064, allocations: 8.031 kB / 471.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.1065, allocations: 56.28 kB / 471.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006349/0.1072, allocations: 473.9 kB / 472.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.1072, allocations: 33 kB / 472.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-05/0.1073, allocations: 39.91 kB / 472.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006096/0.1079, allocations: 453.1 kB / 472.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1079, allocations: 0 / 472.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.108, allocations: 16 kB / 472.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.108, allocations: 15.94 kB / 472.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004197/0.1084, allocations: 278.3 kB / 472.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.1102, allocations: 1.866 MB / 474.8 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004274/0.1106, allocations: 251.5 kB / 475 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.1108, allocations: 87.05 kB / 475.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.1108, allocations: 12.08 kB / 475.1 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.1111, allocations: 173.7 kB / 475.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.1111, allocations: 4 kB / 475.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001453/0.1125, allocations: 0.9025 MB / 476.2 MB, free: 6.312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.1126, allocations: 132.5 kB / 476.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00039/0.113, allocations: 409.8 kB / 476.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.113, allocations: 37.89 kB / 476.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.1132, allocations: 267.6 kB / 477 MB, free: 5.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.885e-05/0.1133, allocations: 94.64 kB / 477.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.895e-05/0.1133, allocations: 37.7 kB / 477.2 MB, free: 5.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1134, allocations: 350.8 kB / 477.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.1136, allocations: 87.91 kB / 477.6 MB, free: 4.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.1138, allocations: 212.2 kB / 477.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003549/0.1142, allocations: 315.9 kB / 478.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.1142, allocations: 0 / 478.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000754/0.1149, allocations: 433.8 kB / 478.5 MB, free: 3.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.115, allocations: 4 kB / 478.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.115, allocations: 8 kB / 478.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003859/0.1154, allocations: 88.77 kB / 478.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.1156, allocations: 67.91 kB / 478.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.1176, allocations: 1.821 MB / 480.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.1178, allocations: 23.98 kB / 480.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.1178, allocations: 20.06 kB / 480.6 MB, free: 1.629 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.0001836/0.118, allocations: 193.7 kB / 480.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.192e-05/0.1181, allocations: 39.53 kB / 480.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005334/0.1186, allocations: 297.9 kB / 481.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1186, allocations: 0 / 481.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1186, allocations: 7.938 kB / 481.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1187, allocations: 4 kB / 481.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008926/0.1196, allocations: 0.7687 MB / 481.9 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1196, allocations: 0 / 481.9 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/0.1198, allocations: 47.91 kB / 481.9 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001801/0.12, allocations: 48.81 kB / 482 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.12, allocations: 8 kB / 482 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.1211, allocations: 1.441 MB / 483.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1212, allocations: 4.062 kB / 483.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006517/0.1218, allocations: 0.4952 MB / 483.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.1219, allocations: 140.5 kB / 484 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.122, allocations: 7.938 kB / 484 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.1222, allocations: 23.98 kB / 484.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.837e-05/0.1223, allocations: 23.91 kB / 484.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.921e-05/0.1223, allocations: 8 kB / 484.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002881/0.1226, allocations: 283.1 kB / 484.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1226, allocations: 0 / 484.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004841/0.1231, allocations: 104 kB / 484.5 MB, free: 13.45 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.0009053/0.124, allocations: 405.7 kB / 484.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007977/0.1248, allocations: 395.5 kB / 485.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.1248, allocations: 4.062 kB / 485.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.1252, allocations: 238.5 kB / 485.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007019/0.1259, allocations: 117.5 kB / 485.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.1276, allocations: 1.385 MB / 487 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.128, allocations: 0.8545 MB / 487.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.1282, allocations: 67.34 kB / 487.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.627e-05/0.1283, allocations: 35.42 kB / 488 MB, free: 10.03 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1283, allocations: 0 / 488 MB, free: 10.03 MB / 366.1 MB Notification: Performance of Templates: time 0.009586/0.1379, allocations: 5.826 MB / 493.8 MB, free: 4.266 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches