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.001629/0.001629, allocations: 101 kB / 16.5 MB, free: 6.695 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.00158/0.00158, allocations: 194.4 kB / 17.42 MB, free: 6.09 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.37/1.37, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1779/0.1779, allocations: 38.04 MB / 329.3 MB, free: 9.082 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 62.58 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 58.07 MB / 456.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007299/0.1099, allocations: 6.315 MB / 462.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003593/0.1135, allocations: 2.318 MB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005451/0.1141, allocations: 31.81 kB / 464.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006305/0.1147, allocations: 147.2 kB / 465 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001131/0.1159, allocations: 386 kB / 465.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006502/0.1166, allocations: 222.7 kB / 465.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001367/0.118, allocations: 1.059 MB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006341/0.1186, allocations: 427 kB / 467 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005/0.1191, allocations: 294.7 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004776/0.1196, allocations: 354.5 kB / 467.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.11e-05/0.1197, allocations: 32 kB / 467.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002331/0.1199, allocations: 75.97 kB / 467.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.1201, allocations: 163.5 kB / 467.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002836/0.1204, allocations: 294.5 kB / 468.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006526/0.1211, allocations: 0.7047 MB / 468.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1211, allocations: 3.984 kB / 468.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1211, allocations: 0 / 468.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1211, allocations: 4 kB / 468.9 MB, free: 11.7 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.001709/0.1228, allocations: 0.8941 MB / 469.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.1229, allocations: 12.03 kB / 469.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.123, allocations: 60.19 kB / 469.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007663/0.1238, allocations: 0.4941 MB / 470.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.1238, allocations: 37 kB / 470.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.124, allocations: 47.98 kB / 470.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007879/0.1248, allocations: 0.5095 MB / 471 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.1248, allocations: 8 kB / 471 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.797e-05/0.1248, allocations: 16 kB / 471 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-05/0.1249, allocations: 16.98 kB / 471 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005409/0.1255, allocations: 335.7 kB / 471.4 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002648/0.1281, allocations: 2.077 MB / 473.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.1286, allocations: 223.6 kB / 473.7 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.1288, allocations: 86.67 kB / 473.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.1288, allocations: 11.88 kB / 473.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002751/0.1291, allocations: 165.7 kB / 473.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.044e-06/0.1291, allocations: 4 kB / 473.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001801/0.1309, allocations: 0.9161 MB / 474.8 MB, free: 5.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.402e-05/0.131, allocations: 132.5 kB / 475 MB, free: 5.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005695/0.1316, allocations: 425.9 kB / 475.4 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.1316, allocations: 33.95 kB / 475.4 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.1318, allocations: 303.8 kB / 475.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.998e-05/0.1319, allocations: 86.75 kB / 475.8 MB, free: 4.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.1321, allocations: 78.03 kB / 475.9 MB, free: 4.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1322, allocations: 354.7 kB / 476.2 MB, free: 4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.1324, allocations: 84.83 kB / 476.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/0.1327, allocations: 225.7 kB / 476.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004235/0.1331, allocations: 329.7 kB / 476.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1331, allocations: 0 / 476.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000879/0.134, allocations: 441.7 kB / 477.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.134, allocations: 4 kB / 477.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.134, allocations: 4 kB / 477.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004498/0.1345, allocations: 100.8 kB / 477.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002796/0.1348, allocations: 71.84 kB / 477.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002137/0.1369, allocations: 1.703 MB / 479.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.1373, allocations: 23.98 kB / 479.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-05/0.1373, allocations: 16 kB / 479.2 MB, free: 0.7539 MB / 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.000328/0.1377, allocations: 213.6 kB / 479.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.04e-05/0.1377, allocations: 47.5 kB / 479.4 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000607/0.1384, allocations: 274.1 kB / 479.7 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1384, allocations: 3.938 kB / 479.7 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1384, allocations: 4 kB / 479.7 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1384, allocations: 3.984 kB / 479.7 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001266/0.1397, allocations: 0.7796 MB / 480.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.1397, allocations: 4 kB / 480.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.14, allocations: 43.97 kB / 480.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002253/0.1402, allocations: 52.8 kB / 480.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.1402, allocations: 11.94 kB / 480.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.1415, allocations: 1.433 MB / 482 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1415, allocations: 0 / 482 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007367/0.1422, allocations: 490 kB / 482.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.1424, allocations: 128.6 kB / 482.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.179e-05/0.1424, allocations: 8.125 kB / 482.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.1427, allocations: 19.98 kB / 482.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.071e-05/0.1428, allocations: 23.91 kB / 482.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.1428, allocations: 19.88 kB / 482.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003564/0.1432, allocations: 299.1 kB / 483 MB, free: 12.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1432, allocations: 0 / 483 MB, free: 12.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005718/0.1438, allocations: 112 kB / 483.1 MB, free: 12.56 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.001018/0.1448, allocations: 390.4 kB / 483.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000847/0.1457, allocations: 398.4 kB / 483.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/0.1457, allocations: 4 kB / 483.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.1461, allocations: 231.5 kB / 484.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007687/0.1469, allocations: 129.8 kB / 484.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.149, allocations: 1.375 MB / 485.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.1494, allocations: 0.8857 MB / 486.5 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002592/0.1497, allocations: 68.22 kB / 486.6 MB, free: 9.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.138e-05/0.1498, allocations: 31.44 kB / 486.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of SimCode: time 2.184e-06/0.1498, allocations: 0 / 486.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of Templates: time 0.01361/0.1634, allocations: 6.129 MB / 492.7 MB, free: 3.078 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 -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/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","/var/lib/jenkins/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