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.002023/0.002023, 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.002672/0.002673, 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.685/1.685, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1801/0.1801, allocations: 38.04 MB / 330.5 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 60.77 kB / 400.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1487, allocations: 58.07 MB / 458.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.009576/0.1584, allocations: 5.689 MB / 464 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004331/0.1628, allocations: 2.123 MB / 466.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005534/0.1634, allocations: 19.88 kB / 466.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007741/0.1642, allocations: 166.8 kB / 466.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.1655, allocations: 429.6 kB / 466.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000789/0.1663, allocations: 250.6 kB / 467 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.1677, allocations: 0.837 MB / 467.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007068/0.1684, allocations: 0.4889 MB / 468.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000602/0.169, allocations: 350.7 kB / 468.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005161/0.1696, allocations: 346.6 kB / 469 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.373e-05/0.1697, allocations: 52 kB / 469 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002552/0.1699, allocations: 99.92 kB / 469.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.1702, allocations: 187.4 kB / 469.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003276/0.1705, allocations: 306.5 kB / 469.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009393/0.1715, allocations: 0.732 MB / 470.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.1715, allocations: 0 / 470.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.838e-06/0.1715, allocations: 0 / 470.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.1715, 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.001948/0.1735, allocations: 0.9009 MB / 471.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/0.1735, allocations: 15.89 kB / 471.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.1737, allocations: 68.19 kB / 471.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000976/0.1747, allocations: 0.5099 MB / 471.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.589e-05/0.1747, allocations: 41 kB / 471.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1748, allocations: 47.89 kB / 471.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007423/0.1756, allocations: 0.5173 MB / 472.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.1756, allocations: 4 kB / 472.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.1757, allocations: 16 kB / 472.5 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.146e-05/0.1758, allocations: 28.86 kB / 472.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005181/0.1763, allocations: 331.7 kB / 472.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002477/0.1788, allocations: 2.058 MB / 474.9 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004145/0.1792, allocations: 243.5 kB / 475.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.1793, allocations: 78.69 kB / 475.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.945e-05/0.1794, allocations: 0 / 475.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002476/0.1796, allocations: 172.5 kB / 475.4 MB, free: 5.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.1797, allocations: 4 kB / 475.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001614/0.1813, allocations: 0.9027 MB / 476.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.37e-05/0.1814, allocations: 136.5 kB / 476.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000479/0.1819, allocations: 429.8 kB / 476.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.353e-05/0.1819, allocations: 41.94 kB / 476.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/0.1821, allocations: 291.6 kB / 477.1 MB, free: 4.035 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.392e-05/0.1822, allocations: 90.97 kB / 477.2 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.1823, allocations: 78.03 kB / 477.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1825, allocations: 354.7 kB / 477.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.1826, allocations: 88.83 kB / 477.7 MB, free: 3.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.1829, allocations: 217.8 kB / 477.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/0.1833, allocations: 329.6 kB / 478.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1833, allocations: 4 kB / 478.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008281/0.1841, allocations: 441.6 kB / 478.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1841, allocations: 8 kB / 478.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.1842, allocations: 7.984 kB / 478.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004306/0.1846, allocations: 92.78 kB / 478.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.1849, allocations: 67.91 kB / 478.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.187, allocations: 1.821 MB / 480.7 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.1873, allocations: 23.98 kB / 480.7 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.1873, allocations: 12 kB / 480.7 MB, free: 144 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.0003033/0.1876, allocations: 224.8 kB / 481 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-05/0.1877, allocations: 47.38 kB / 481 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005529/0.1883, allocations: 284.8 kB / 481.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1883, allocations: 4 kB / 481.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.1883, allocations: 0 / 481.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1883, allocations: 3.984 kB / 481.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/0.1894, allocations: 0.7761 MB / 482.1 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.1894, allocations: 3.984 kB / 482.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002702/0.1897, allocations: 55.84 kB / 482.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002157/0.1899, allocations: 48.8 kB / 482.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.1899, allocations: 4 kB / 482.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001295/0.1913, allocations: 1.539 MB / 483.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1913, allocations: 4.062 kB / 483.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007015/0.192, allocations: 482.4 kB / 484.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.1922, allocations: 132.6 kB / 484.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.1922, allocations: 15.92 kB / 484.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.1924, allocations: 16 kB / 484.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.084e-05/0.1925, allocations: 15.97 kB / 484.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.1926, allocations: 11.98 kB / 484.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003385/0.1929, allocations: 299.1 kB / 484.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1929, allocations: 0 / 484.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.1934, allocations: 108 kB / 484.8 MB, free: 11.85 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.0009954/0.1944, allocations: 412.5 kB / 485.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008133/0.1953, allocations: 387.3 kB / 485.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1953, allocations: 0 / 485.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.1957, allocations: 246.1 kB / 485.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006876/0.1964, allocations: 133.6 kB / 485.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.1983, allocations: 1.177 MB / 487.1 MB, free: 9.605 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.1988, allocations: 0.8777 MB / 488 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.199, allocations: 76.2 kB / 488.1 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.959e-05/0.1991, allocations: 35.42 kB / 488.1 MB, free: 8.594 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1991, allocations: 3.938 kB / 488.1 MB, free: 8.59 MB / 366.1 MB Notification: Performance of Templates: time 0.01242/0.2116, allocations: 6.452 MB / 494.5 MB, free: 2.211 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 cvode -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